Austin Group Defect Tracker

Aardvark Mark IV


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
duplicate of 0000192Closedajosey basename examples should use "--" 

-  Notes
(0000413)
geoffclare (manager)
2010-05-04 08:32

This is a (partial) duplicate of changes already accepted in 0000192
(See Note: 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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker