Problem with bash: alias command

Philip Brown philipbrown.es at gmail.com
Sun Dec 20 13:29:54 UTC 2015


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


On Sun, Dec 20, 2015 at 2:20 PM, Michael Welle <mwe012008 at gmx.net> wrote:

> Hello,
>
> Philip Brown <philipbrown.es at gmail.com> writes:
>
> > i think that is a feature of echo
> > if you want without the space you could use printf
> >
> > alias x='printf "PAR=%s\n" $1'
> same problem as with the initial question. What value does the $1 have?
> It is empty. alias does not expect any parameters, if that might be the
> idea behind $1.
>
> 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 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20151220/caea658c/attachment.html>


More information about the users mailing list