[Novalug] bash coding
Mark Smith
mark@winksmith.com
Tue Sep 25 16:53:18 EDT 2012
On Mon, Sep 24, 2012 at 11:51:26PM -0400, Jon LaBadie wrote:
> On Tue, Sep 25, 2012 at 10:55:27AM +1200, Mark Smith wrote:
> As I said basically the same thing, I'll bring up an
> exception few people are aware of.
>
> If the definition of an alias ends with a space, the
> following argument is also subject to alias expansion.
> For example:
>
> $ alias ee='echo'
> $ alias EE='echo '
> $ alias hw='hello world'
> $
> $ ee hw
> hw
> $ EE hw
> hello world
> $
that's cool. i did not know that. bash is constantly surprising me.
50 pounds of bash in a 20 pound shell. with so many features, i'm
surprised it doesn't have more bugs. they must be doing something right.
--
Mark Smith
mark@winksmith.com
mark@tux.org
More information about the Novalug
mailing list