Hello,

Joachim Backes <joachim.bac...@rhrk.uni-kl.de> writes:

> Hi all,
>
> Running F23, and my shell is /bin/bash.
>
> My problem: suppose you define an alias:
>
> alias x='echo PAR=$1'
>
> Now call the alias by:
>
> x 1
>
> Output: PAR= 1
>
> My question: why do I get the blank before the "1"?
because you wrote it when formulating the command line. $1 is empty in
your environment, so x is expanded to 'echo PAR='. The rest of your
command, which is ' 1', is appended then, resulting in 'echo PAR= 1'.

Regards
hmw
-- 
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