Problem with bash: alias command

Michael Welle mwe012008 at gmx.net
Sun Dec 20 13:51:45 UTC 2015


Hello,

Michael Welle <mwe012008 at gmx.net> writes:

> Hello,
>
> Philip Brown <philipbrown.es at gmail.com> writes:
>
>> same problem... not on my terminal
>>
>> bash-4.3$ x 1
>> PAR=1
>>
>> but I must say you explained "the why" very well regards the initial
>> empty parameter
> by problem I mean the expectation that $1 has any meaning in this
> context. It looks like it will work, but it will bite you if you use the
> alias in a context where $1 is defined and has a value.
I should add that we are talking about the definition time of the alias,
not about runtime.

Regards
hmw

-- 
biff4emacsen - A biff-like tool for (X)Emacs
http://www.c0t0d0s0.de/biff4emacsen/biff4emacsen.html
Flood - Your friendly network packet generator
http://www.c0t0d0s0.de/flood/flood.html


More information about the users mailing list