View Issue Details

IDProjectCategoryView StatusLast Update
00002501003.1(2008)/Issue 7Shell and Utilitiespublic2010-05-06 15:54
Reporterdwheeler Assigned Toajosey  
PrioritynormalSeverityEditorialTypeError
Status ResolvedResolutionDuplicate 
NameDavid A. Wheeler
Organization
User Reference
Sectionbasename
Page Number2465
Line Number78659-78660
Interp Status---
Final Accepted Text
Summary0000250: Fix pathname processing error (missing quotes) in basename example
DescriptionThe given example presumes that "$1" is a pathname that does not include any characters in IFS (usually newline, tab, space). However, pathnames can include any character except \0. The given text explains that the example is only given specific input, but I believe highlighted examples should be robust enough to correctly process any value of $1. After all, people are likely to copy examples from the specification.
Desired ActionChange:
 c99 $(dirname "$1")/$(basename "$1" .c).c
 mv a.out $(basename "$1" .c)
to:
 c99 "$(dirname "$1")/$(basename "$1" .c).c"
 mv a.out "$(basename "$1" .c)"
TagsNo tags attached.

Relationships

duplicate of 0000192 Closedajosey basename examples should use "--" 

Activities

geoffclare

2010-05-04 08:32

manager   bugnote:0000413

This is a (partial) duplicate of changes already accepted in 0000192
(See 0000192:0000327)

Issue History

Date Modified Username Field Change
2010-05-02 00:46 dwheeler New Issue
2010-05-02 00:46 dwheeler Status New => Under Review
2010-05-02 00:46 dwheeler Assigned To => ajosey
2010-05-02 00:46 dwheeler Name => David A. Wheeler
2010-05-02 00:46 dwheeler Section => basename
2010-05-02 00:46 dwheeler Page Number => 2465
2010-05-02 00:46 dwheeler Line Number => 78659-78660
2010-05-04 08:32 geoffclare Note Added: 0000413
2010-05-06 15:53 nick Interp Status => ---
2010-05-06 15:53 nick Status Under Review => Resolved
2010-05-06 15:53 nick Resolution Open => Duplicate
2010-05-06 15:54 geoffclare Relationship added duplicate of 0000192