bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #25946] mv/cp/ls/cd cannot cope with leading dash (-) in directory


From: Hendrick Musche
Subject: [bug #25946] mv/cp/ls/cd cannot cope with leading dash (-) in directory names without path
Date: Fri, 20 Mar 2009 22:43:17 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7) Gecko/2009030516 Ubuntu/9.04 (jaunty) Firefox/3.0.7

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]