Greg Wooledge wrote in
:
|On Sat, Aug 24, 2024 at 02:15:48 +0200, Steffen Nurpmeso wrote:
|> a() {
|> echo $#,1=$1,2=$2,"$*",$*,
|>}
|
|You didn't read a word I said, did you
I recognize that i did not get your email even though i was in Cc:.
|*Sigh.*
--End of
--steffen
|
|De
Emanuele Torre wrote in
:
|On Sat, Aug 24, 2024 at 02:15:48AM +0200, Steffen Nurpmeso wrote:
|> Sorry but i really have to come again, i do not understand what is
|> going on, and *i* think shell is at fault.
|
|No. It is working correctly.
|
|> This:
|>
|> a() {
|> echo $#,1=$1,2
Date:Sat, 24 Aug 2024 02:33:26 +0200
From:Emanuele Torre
Message-ID:
| No. It is working correctly.
It is indeed.
| This $1 is unquoted, it will be split. You need to use "$1" if you don't
| want it to split.
Alternatively, make a() be
a()
{
On Sat, Aug 24, 2024 at 02:15:48 +0200, Steffen Nurpmeso wrote:
> a() {
> echo $#,1=$1,2=$2,"$*",$*,
> }
You didn't read a word I said, did you
*Sigh.*
On Sat, Aug 24, 2024 at 02:15:48AM +0200, Steffen Nurpmeso wrote:
> Sorry but i really have to come again, i do not understand what is
> going on, and *i* think shell is at fault.
No. It is working correctly.
>
> This:
>
> a() {
> echo $#,1=$1,2=$2,"$*",$*,
This $1 is unquoted, it will b