On 26 February 2010 07:03, Aaron Griffin <aaronmgriffin@gmail.com> wrote:
On Thu, Feb 25, 2010 at 4:56 PM, Cedric Staniewski <cedric@gmx.ca> wrote:
On 25.02.2010 23:43, Aaron Griffin wrote:
On Thu, Feb 25, 2010 at 4:23 PM, Cedric Staniewski <cedric@gmx.ca> wrote:
The location of the used utilities may and does differ between various distributions and therefore absolute paths do not work well. Since the main purpose of its introduction was to avoid side-effects caused by aliases, it is sufficient to disable possible aliases temporarily by preceding the commands with a backslash.
Holy crap, that works? Where did you find this trick?
Seems so. I found it in a blog post[1] but not in bash's man page.
[1] http://blog.zelut.org/2009/03/14/temporarily-disable-aliases-in-bash/
This appears undocumented. I can't find any mention in the man page
Probably because \ is "already" documented as being an escape character, allowing the string to be taken literally by the shell, hence skipping possible aliases in this case. The closest form of documentation comes from TLDP [1]: [quote] The alias command will list your current aliases. You can use unalias to remove the alias (to disable it just for one command add a “\” (back-slash) before the command)... [/quote] [1] http://tldp.org/LDP/GNU-Linux-Tools-Summary/html/c1195.htm -- GPG/PGP ID: B42DDCAD