Anonymous | Login | 2024-12-12 01:53 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0000250 | [1003.1(2008)/Issue 7] Shell and Utilities | Editorial | Error | 2010-05-02 00:46 | 2010-05-06 15:54 | ||
Reporter | dwheeler | View Status | public | ||||
Assigned To | ajosey | ||||||
Priority | normal | Resolution | Duplicate | ||||
Status | Resolved | ||||||
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. | ||||||
Attached Files | |||||||
|
Relationships | ||||||
|
Notes | |
(0000413) geoffclare (manager) 2010-05-04 08:32 |
This is a (partial) duplicate of changes already accepted in 0000192 (See Note: 0000327) |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |