[pacman-dev] [PATCH] bash_completion: remove absolute utility paths again

Ray Rashif schivmeister at gmail.com
Thu Feb 25 18:23:50 EST 2010


On 26 February 2010 07:03, Aaron Griffin <aaronmgriffin at gmail.com> wrote:
> On Thu, Feb 25, 2010 at 4:56 PM, Cedric Staniewski <cedric at gmx.ca> wrote:
>> On 25.02.2010 23:43, Aaron Griffin wrote:
>>> On Thu, Feb 25, 2010 at 4:23 PM, Cedric Staniewski <cedric at 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


More information about the pacman-dev mailing list