bug-fileutils
[Top][All Lists]
Advanced

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

cp treats filename starting with a dash as a parameter


From: Adam Nielsen
Subject: cp treats filename starting with a dash as a parameter
Date: Wed, 28 Aug 2002 18:55:39 +1000

Hi,

When I type a command such as this:

$ cp * /some/folder

And there is a file called "-CAT_NO3.022" in the current directory, I get 
this response:

cp: invalid option -- C
Try `cp --help' for more information.

It looks as if the "-C" at the start of the filename is being treated as a 
parameter to cp.  I'm using fileutils 4.1 (Linux x86 2.4.18, ext3.)  Please 
let me know if I've found a real live bug!

Cheers,
Adam.




reply via email to

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