cp treats filename starting with a dash as a parameter
Adam Nielsen <[email protected]>
| Newsgroups | gmane.comp.gnu.fileutils.bugs |
|---|---|
| Message-ID | <02082818553901.26740@adam> |
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.