Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'or use quote' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
or use quote
Authored by: SOX on Jul 31, '02 03:52:25PM

just quote the file name



[ Reply to This | # ]
or use quote - not
Authored by: ber on Jul 31, '02 04:53:01PM

Quoting doesn't cut it. Use gidd's suggestions...

sh-2.05a$ rm "-x"
rm: illegal option -- x
usage: rm [-f | -i] [-dPRrvW] file ...
unlink file
sh-2.05a$ rm '-x'
rm: illegal option -- x
usage: rm [-f | -i] [-dPRrvW] file ...
unlink file
sh-2.05a$ rm \-x
rm: illegal option -- x
usage: rm [-f | -i] [-dPRrvW] file ...
unlink file



[ Reply to This | # ]
or use quote - not
Authored by: snit on Jul 31, '02 05:59:10PM
works fine for me:

[localhost:~/Desktop] user% rm -- -x
remove -x? y
[localhost:~/Desktop] user%


I think you left used the name x instead of -x in your example.



[ Reply to This | # ]