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

Ray Rashif schivmeister at gmail.com
Thu Feb 25 17:58:41 EST 2010


On 26 February 2010 06:56, 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/

And presto, it really does:

[schiv at v3000 ~]$ alias printf='printf "hi\n"'
[schiv at v3000 ~]$ printf
hi
[schiv at v3000 ~]$ \printf
printf: usage: printf [-v var] format [arguments]


--
GPG/PGP ID: B42DDCAD


More information about the pacman-dev mailing list