View Issue Details

IDProjectCategoryView StatusLast Update
00018841003.1(2024)/Issue8Shell and Utilitiespublic2024-12-12 16:07
ReporterLove4Boobies Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ResolvedResolutionAccepted As Marked 
NameBogdan Barbu
Organization
User Reference
Sectionfile
Page Numberhttps://pubs.opengroup.org/onlinepubs/9799919799/utilities/file.html
Line NumberN/A
Interp Status---
Final Accepted Text0001884:0006991
Summary0001884: file references FORTRAN
DescriptionThe fort77 utility was removed in Issue 8 but the file utility still mandates that FORTRAN programs be tested for.
Desired ActionIn the STDOUT section, remove the entry for FORTRAN.
Tagstc1-2024

Activities

geoffclare

2024-12-05 09:35

manager   bugnote:0006984

I agree that the file utility should not be required to test for FORTRAN source. In particular, the RATIONALE states (end of 2nd para):
Only those types that are reasonably well specified in POSIX or are directly related to POSIX utilities are listed in the table.

However, more changes are needed than just the STDOUT section. I will propose detailed changes in a separate note.

geoffclare

2024-12-05 09:46

manager   bugnote:0006985

On page 2933 line 97898 section file (STDOUT), delete:
| FORTRAN source | fortran program text | 3,5,6 |

On page 2936 line 98028 section file (RATIONALE), change:
binary data, C source, FORTRAN source, assembler source, ...
to:
binary data, source for C and other programming languages, assembler source, ...

On page 2936 line 98032 section file (RATIONALE), after:
Only those types that are reasonably well specified in POSIX or are directly related to POSIX utilities are listed in the table.
add a sentence:
Versions of this standard earlier than Issue 8 included a FORTRAN development option, and so the file utility was required to attempt to identify FORTRAN source. This is no longer required.

On page 2937 line 98057 section file (RATIONALE), change:
shell scripts, C, FORTRAN, and other computer language source files, and ...
to:
shell scripts, source for C and other programming languages, assembler source, and ...

Love4Boobies

2024-12-05 09:56

reporter   bugnote:0006986

Last edited: 2024-12-05 12:16

I also saw FORTRAN mentioned in the rationale but I don't think those changes are necessary because rationale merely describes some historical context. After all, it still mentions assembler source, troff source, etc. and those aren't defined by POSIX either. These things can be seen throughout the document, not just on this page.

Love4Boobies

2024-12-05 12:04

reporter   bugnote:0006987

Last edited: 2024-12-05 12:14

Apart from the change suggested in my previous comment to reintroduce those sentences to the rationale, I've also tracked down a few other instances of FORTRAN. Should I open a new ticket? For reference:

1. The FR margin code in 1.8.1.
2. _POSIX2_FORT_RUN in <unistd.h>, in 2.1.6.2, and in D.3.2.
3. The FORTRAN standard appears in the Referenced Documents in the Informative References section.
4. The asa utility should be removed as its point is to handle carriage control conventions commonly associated with FORTRAN programs. Its rationale even says this is its only intended purpose.

geoffclare

2024-12-05 14:24

manager   bugnote:0006988

Last edited: 2024-12-05 17:18

Re: 0001884:0006987
I remember asa being discussed back when the decision was made to mark fort77 OB in Issue 7. The decision was not to mark asa OB, hence why it was retained in Issue 8 when the OB stuff from 7 was removed. The other things you mention (FR, _POSIX2_FORT_RUN, Referenced Documents) are there because of asa. This is all as intended.

geoffclare

2024-12-05 17:36

manager   bugnote:0006991

Last edited: 2024-12-12 16:06

On page 2933 line 97898 section file (STDOUT), delete:
| FORTRAN source | fortran program text | 3,5,6 |

On page 2936 line 98028 section file (RATIONALE), change:
binary data, C source, FORTRAN source, assembler source, ...
to:
binary data, source for C and other programming languages, ...

On page 2936 line 98032 section file (RATIONALE), after:
Only those types that are reasonably well specified in POSIX or are directly related to POSIX utilities are listed in the table.
add a sentence:
Versions of this standard earlier than Issue 8 included a FORTRAN development option, and so the file utility was required to attempt to identify FORTRAN source. This is no longer required.

On page 2937 line 98057 section file (RATIONALE), change:
shell scripts, C, FORTRAN, and other computer language source files, and ...
to:
shell scripts, source for C and other programming languages, and ...


Issue History

Date Modified Username Field Change
2024-12-05 09:21 Love4Boobies New Issue
2024-12-05 09:21 Love4Boobies Name => Bogdan Barbu
2024-12-05 09:21 Love4Boobies Section => file
2024-12-05 09:21 Love4Boobies Page Number => https://pubs.opengroup.org/onlinepubs/9799919799/utilities/file.html
2024-12-05 09:21 Love4Boobies Line Number => N/A
2024-12-05 09:35 geoffclare Note Added: 0006984
2024-12-05 09:46 geoffclare Note Added: 0006985
2024-12-05 09:56 Love4Boobies Note Added: 0006986
2024-12-05 12:04 Love4Boobies Note Added: 0006987
2024-12-05 12:14 Love4Boobies Note Edited: 0006987
2024-12-05 12:15 Love4Boobies Note Edited: 0006986
2024-12-05 12:16 Love4Boobies Note Edited: 0006986
2024-12-05 14:24 geoffclare Note Added: 0006988
2024-12-05 17:18 geoffclare Note Edited: 0006988
2024-12-05 17:36 geoffclare Note Added: 0006991
2024-12-12 16:06 geoffclare Note Edited: 0006991
2024-12-12 16:07 geoffclare Interp Status => ---
2024-12-12 16:07 geoffclare Final Accepted Text => 0001884:0006991
2024-12-12 16:07 geoffclare Status New => Resolved
2024-12-12 16:07 geoffclare Resolution Open => Accepted As Marked
2024-12-12 16:08 geoffclare Tag Attached: tc1-2024