bug-gnulib
[Top][All Lists]
Advanced

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

Re: aliasing "sed" to "sed --posix"


From: Bruno Haible
Subject: Re: aliasing "sed" to "sed --posix"
Date: Mon, 6 Aug 2007 10:10:54 +0200
User-agent: KMail/1.5.4

Bruce Korb wrote:
> Aliases are turned off.
> Below is an experiment.  Invoke with and without an argument.  The results
> look like this:

Your experiment uses the 'exit' command to test whether aliases are supported.
However, 'exit' is a shell built-in. Whereas 'sed' is not and will likely
never be a shell built-in. Can you retry your experiment with a non-built-in?

In gnulib-tool line 468 you see that the usual way to override built-ins in
bash is to define them as a function, because 'alias' does not work for them.

Bruno





reply via email to

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