On 1/17/2010 11:24 PM, Manuel Reimer wrote:
> David E. Ross wrote:
>> When I got a shell account on my ISP's Web server in my own address
>> space, one of the first things I did was
>> alias rm='rm -i'
>> I also did the same for cp and mv.
>
> I tried this, some time ago. But this sucks, as it asks for *every*
> file, if I try to "rm -r" a directory. As this makes it impossible to do
> my work, I started to call "rm" with full path ("/bin/rm") and some time
> later, I removed the alias.
Instead, I escape the command with a back-slash, which causes the actual
command to execute instead of the alias. This keeps the safety of the
alias but allows me to intentionally bypass it.
The command
\rm abc*
will ignore the alias and remove all files in the current directory
whose names begin with "abc" without any prompt for confirmation.
I escape the commands rm, cp, and mv when I use them in a script.
However, I don't escape them until after I have tested the script just
in case I have an error in the script.
--
David E. Ross
<http://www.rossde.com/>
Go to Mozdev at <http://www.mozdev.org/> for quick access to
extensions for Firefox, Thunderbird, SeaMonkey, and other
Mozilla-related applications. You can access Mozdev much
more quickly than you can Mozilla Add-Ons.
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey