bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on $IFS related differences (Was: Question on $@ vs $@$@)


From: Steffen Nurpmeso
Subject: Re: Question on $IFS related differences (Was: Question on $@ vs $@$@)
Date: Wed, 18 Sep 2024 23:05:06 +0200
User-agent: s-nail v14.9.25-608-ge479530e8d

Oğuz wrote in
 <CAH7i3Lq9xQnnkAO7cd5XZEsV4jY+Va6uWqjw3yaMi=A3mdh83g@mail.gmail.com>:
 |On Wed, Sep 18, 2024 at 4:19 AM Steffen Nurpmeso <steffen@sdaoden.eu> \
 |wrote:
 |>
 |
 |It boils down to this:

In this case, ok .. i have not spent time trying to vaporise it.
I haved added this standalone thing to my tests.

 |  f(){ echo $#;}; set "" "" ""; IFS=x; f $*
 |
 |bash, NetBSD and FreeBSD sh, and ksh88 all agree and print 2. pdksh
 |prints 3 but mksh and oksh print 1. dash, ksh93, yash, and zsh print
 |0.

I am totally surprised they all swallow this code, there is no
separating whitespace in between the ; and the } which closes the
function -- isn't that invalid syntax even??

 --End of <CAH7i3Lq9xQnnkAO7cd5XZEsV4jY+Va6uWqjw3yaMi=A3mdh83g@mail.gmail\
 .com>

Thanks a lot for the impetus!

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]