URL:
<http://savannah.gnu.org/bugs/?25946>
Summary: mv/cp/ls/cd cannot cope with leading dash (-) in
directory names without path
Project: GNU Core Utilities
Submitted by: hmu
Submitted on: Fr 20 Mär 2009 22:43:15 GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Probably just a minor bug, thought I'd file it anyway. I just stumbled upon
the error that I couldn't cd oder ls in a directory named "- test -". Any
attempt with quotation marks or escaping the dash fails with:
~$ cd "- test -"
bash: cd: - : invalid option
cd: usage: cd [-L|-P] [dir]
However, if used with a path, it works ok:
~$ cd "./- test -"
~/- test -$
Is this intended? I know its a bit lazy leaving the path away, but it did
took me quite a while to figure it out.
btw, this is with coreutils 6.10 on ubuntu jaunty.
Sincerely,
Hendrick
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25946>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils