View Issue Details

IDProjectCategoryView StatusLast Update
00010521003.1(2013)/Issue7+TC1Shell and Utilitiespublic2024-06-11 08:56
Reporterdannyniu Assigned To 
PrioritynormalSeverityEditorialTypeOmission
Status ClosedResolutionAccepted As Marked 
NameDannyNiu/NJF
Organization
User Reference
SectionXCU 2.6.2 Parameter Expansion
Page Number2329
Line Number73982-73985
Interp Status---
Final Accepted Text0001052:0003755
Summary0001052: ${#var} should be decimal I presume.
DescriptionAs described in the spec, ${#var} substitutes the string length of var in parameter expansion. It is unspecified however the representation of the length, leaving loopholes for constructs like: ( var=abcd ; [ ${#var} = 4 ] ) to have non-zero exit status on some implementations claiming conformance.
Desired ActionChange:

The length in characters of the value of parameter shall be substituted. ...

to:

The length in characters, in its shortest decimal representation, of the value of paremeter shall be substituted. ...
Tagstc3-2008

Activities

geoffclare

2017-06-08 15:24

manager   bugnote:0003755

On 2016 edition Page 2350 Line 74874, 74877, 74881, 74883 section 2.5.2 Special Parameters, change:
Expands to the decimal ...
to:
Expands to the shortest representation of the decimal ...

On 2016 edition Page 2355 Line 75098 section 2.6.2, change:
The length in characters of ...
to:
The shortest decimal representation of the length in characters of ...

Issue History

Date Modified Username Field Change
2016-05-08 08:34 dannyniu New Issue
2016-05-08 08:34 dannyniu Name => DannyNiu/NJF
2016-05-08 08:34 dannyniu Section => XCU 2.6.2 Parameter Expansion
2016-05-08 08:34 dannyniu Page Number => 2329
2016-05-08 08:34 dannyniu Line Number => 73982-73985
2017-06-08 15:24 geoffclare Note Added: 0003755
2017-06-08 15:25 geoffclare Interp Status => ---
2017-06-08 15:25 geoffclare Final Accepted Text => 0001052:0003755
2017-06-08 15:25 geoffclare Status New => Resolved
2017-06-08 15:25 geoffclare Resolution Open => Accepted As Marked
2017-06-08 15:25 geoffclare Tag Attached: tc3-2008
2019-10-23 14:01 geoffclare Status Resolved => Applied
2024-06-11 08:56 agadmin Status Applied => Closed