View Issue Details

IDProjectCategoryView StatusLast Update
00012671003.1(2016/18)/Issue7+TC2Shell and Utilitiespublic2024-06-11 09:08
Reporterdennisw Assigned To 
PrioritynormalSeverityCommentTypeError
Status ClosedResolutionAccepted As Marked 
NameDennis Wölfing
Organization
User Reference
Sectionsh
Page Number3228
Line Number108396-108397
Interp Status---
Final Accepted Text0001267:0004471
Summary0001267: sh HOME should not be UP shaded
DescriptionHOME is UP shaded in the ENVIRONMENT VARIABLES section of the sh utility.
However XCU 2.6.1 clearly states that HOME is always used by the shell for tilde expansion without a login name, not just on systems that implement the UP option.
Desired ActionOn page 3228 lines 108396-108397 section sh, remove UP shading from:
HOME
Determine the pathname of the user’s home directory. The contents of HOME are
used in tilde expansion as described in [xref to XCU 2.6.1].
Tagstc3-2008

Activities

shware_systems

2019-07-03 16:22

reporter   bugnote:0004470

I believe it is UP shaded because embedded systems may not maintain a getpwnam() file, and take advantage of the unspecified behavior allowance of HOME being unset to replace the tilde with an arbitrary absolute path constant. Systems conforming to the UP option are required to maintain that file, I believe, so a valid value for HOME is always plausible and shouldn't be unset, or even a null string.

geoffclare

2019-07-04 08:10

manager   bugnote:0004471

Looking at the history, it seems that this was an editorial mistake when merging POSIX.2-1992 into SUSv2 to make POSIX.1-2001/SUSv3. The text "This volume of IEEE Std 1003.1-2001 specifies the effects of this variable only for systems supporting the User Portability Utilities option" was added to FCEDIT, HISTFILE and HOME but should have been added to FCEDIT, HISTFILE and HISTSIZE (to match POSIX.2-1992).

The fix should be to remove UP shading from HOME and add it to HISTSIZE.

shware_systems

2019-07-04 14:15

reporter   bugnote:0004472

Perhaps, but I think my analysis has some validity too, in that its presence is optional, so if the shading is removed it may desirable to add text accenting that aspect, e.g. Change last sentence to:

The contents of HOME, when it is set and is a non-null value, are
used in tilde expansion as described in [xref to XCU 2.6.1].

Issue History

Date Modified Username Field Change
2019-07-03 15:24 dennisw New Issue
2019-07-03 15:24 dennisw Name => Dennis Wölfing
2019-07-03 15:24 dennisw Section => sh
2019-07-03 15:24 dennisw Page Number => 3228
2019-07-03 15:24 dennisw Line Number => 108396-108397
2019-07-03 16:22 shware_systems Note Added: 0004470
2019-07-04 08:10 geoffclare Note Added: 0004471
2019-07-04 14:15 shware_systems Note Added: 0004472
2019-08-01 16:10 geoffclare Interp Status => ---
2019-08-01 16:10 geoffclare Final Accepted Text => 0001267:0004471
2019-08-01 16:10 geoffclare Status New => Resolved
2019-08-01 16:10 geoffclare Resolution Open => Accepted As Marked
2019-08-01 16:11 geoffclare Tag Attached: tc3-2008
2019-11-20 16:08 geoffclare Status Resolved => Applied
2024-06-11 09:08 agadmin Status Applied => Closed