Hi,
Yes thanks, I guess this should be pointed out for those who didn't know
already.
On 2011-10-26, at 3:06 PM, Jeremy wrote:
> I did not know this so I thought I would pass it along. By quoting a command
> you can bypass an alias for it.
>
> ie: my cp command is aliased to cp -i . "cp" bypasses it so it is not
> interactive.
Yes, this is the same as \cp
OT
Proper form suggests in scripting; one should use hard paths (or variables
to hard paths), but if you don't then you should be certain you are not
executing aliases by backslashing or quoting*. I can tell you horror stories
that have happened to folks not being aware of this.
Also if you use tcsh, the command "which" is built-in, and can tell you if you
have an alias or not. This is also handy when debugging others' environments.
tcsh% which cp
cp: aliased to cp -i
tcsh% which \cp
/sw/bin/cp
Takk
Hro,
_______________________________________________
mlug mailing list
[email protected]
https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca