bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

need a way to ignore aliases in shell functions


From: Ian Macdonald
Subject: need a way to ignore aliases in shell functions
Date: Mon, 22 Nov 2004 14:39:36 -0800
User-agent: Mutt/1.5.6i

Hi,

When writing programmable completion functions, it would be very handy
to be able to instruct bash to ignore aliases inside functions. It's
often necessary to call things like sed, awk and grep inside completion
functions and, if the user has aliased these commands, all manner of
unexpected subtle errors can occur.

I know I can prefix built-ins with 'builtin' and external commands with
'command', but to have to do this for every single instance is rather
annoying. Much better would be to use a built-in command, 'disable'
perhaps, to disable aliases at the top of the function and 'enable' them
again at the end.

What do others think?

Ian
-- 
Ian Macdonald               | Secrecy is the beginning of tyranny. 
System Administrator        | 
ian@caliban.org             | 
http://www.caliban.org      | 
                            | 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]