simply name files after common command arguments... below i made an executable and
named it "--help" wich just happens to be one of the "rm" arguments. so- whenever i
try to delete this file from the command line, i just get the "rm" help menu
*-------------COPIED TEXT BELOW---------------*
[EMAIL PROTECTED] ls
--help Floppy Trash dcom2.c nmap_198.192.89-112.txt
CD-ROM [cdrom1] r00t.desktop a.out hda1 scan198.txt
CD-ROM [cdrom] SelfLinux.desktop dcom2 hdb1 socks4.exe
[EMAIL PROTECTED] rm --help
Usage: rm [OPTION]... FILE...
Remove (unlink) the FILE(s).
-d, --directory unlink FILE, even if it is a non-empty directory
(super-user only)
-f, --force ignore nonexistent files, never prompt
-i, --interactive prompt before any removal
-r, -R, --recursive remove the contents of directories recursively
-v, --verbose explain what is being done
--help display this help and exit
--version output version information and exit
To remove a file whose name starts with a `-', for example `-foo',
use one of these commands:
rm -- -foo
rm ./-foo
Note that if you use rm to remove a file, it is usually possible to recover
the contents of that file. If you want more assurance that the contents are
truly unrecoverable, consider using shred.
Report bugs to <[EMAIL PROTECTED]>.
[EMAIL PROTECTED]
*----------END OF COPIED TEXT-----------*
--
_______________________________________________
Get your free email from http://www.hackermail.com
Powered by Outblaze
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils