Hello,

Philip Brown <philipbrown...@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.

Of course, your idea of using printf to get rid of the blank is a way.
Just edit out the $1. Another way would be to use a function. Then you
can use parameters.

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
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to