View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000250 | 1003.1(2008)/Issue 7 | Shell and Utilities | public | 2010-05-02 00:46 | 2010-05-06 15:54 |
Reporter | dwheeler | Assigned To | ajosey | ||
Priority | normal | Severity | Editorial | Type | Error |
Status | Resolved | Resolution | Duplicate | ||
Name | David A. Wheeler | ||||
Organization | |||||
User Reference | |||||
Section | basename | ||||
Page Number | 2465 | ||||
Line Number | 78659-78660 | ||||
Interp Status | --- | ||||
Final Accepted Text | |||||
Summary | 0000250: Fix pathname processing error (missing quotes) in basename example | ||||
Description | The 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 Action | Change: 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)" | ||||
Tags | No tags attached. |
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 |