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

Click here to return to the 'overriding aliases' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
overriding aliases
Authored by: sjk on Jul 29, '05 04:06:36PM

But remember you can override your "rm" alias by prepending '\' (backslash) to it. :-)

And, depending on the flavor of Unix and/or command, adding "-f" after an alias with "-i" can override its interactivity.

Personally, I prefer using cp/mv/rm with "-i" by default (e.g. with shell aliases) and overriding it when desired. With "rm", I'd rather be prompted to delete the first of many files, interrupt the command, recall it (e.g. ctrl-P), slap a backslash in front of it, and redo it than be the unwilling victim of an overzealous wildcard. An occasional, brief "do you really want to do that?" pause has been a worthwhile rethink-and-redo safety net for me although some people will be annoyed by it. And I've never wanted to remember to use interactive versions for those commands. YMMV. :-)

[ Reply to This | # ]