Problem with bash: alias command

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


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


More information about the users mailing list