Subject: Strange shell interaction
To: None <netbsd-help@netbsd.org>
From: Mike Cheponis <mac@Wireless.Com>
List: netbsd-help
Date: 07/31/2001 00:29:54
I have a funny-named file that apparently got there from an "mput" from
a Windows machine. The file is:
-X-Ray Spex- Oh Bondage.mp3
Now, my problem is that I am trying to rename this file to remove the "-"
character at the beginning.
$ /bin/ls *ondage*
ls: illegal option -- X
usage: ls [-1ACFLRSTWacdfgiklmnopqrstux] [file ...]
$ /bin/mv *ondage* foo
mv: illegal option -- X
usage: mv [-fi] source target
mv [-fi] source ... directory
$ /bin/cat *ondage* > foo
cat: illegal option -- X
usage: cat [-befnstuv] [-] [file ...]
$ /bin/ln *ondage* foo
ln: illegal option -- X
Usage: ln [-fhns] file1 file2
ln [-fhns] file ... directory
I suppose I can do this with Emacs dired, but the fact that this is a
problem at all seems to point to a fundamental issue of the shell. (zsh here)
(Or my lack of understanding! Hence this email!)
But, doesn't this behavior violate The Principle of Least Astonishment?
Thanks, gang, as usual. -Mike