[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Word splitting for $@ in variable assignment
From: |
Oğuz |
Subject: |
Re: Word splitting for $@ in variable assignment |
Date: |
Fri, 25 Jun 2021 08:36:44 +0300 |
25 Haziran 2021 Cuma tarihinde Nora Platiel <nplatiel@gmx.us> yazdı:
>
> To me, "$@" expanding to multiple words would mean that:
>
> $ var="$@" foo
>
> for $# > 0, behaves the same as:
>
> $ var="$1" "${@:2}" foo
>
But it wouldn't make any sense. `foo' would be subjected to alias
substitution even though it isn't known for sure to be a command name. How
would that work?
--
Oğuz