[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Success (mostly) with the testsuite
From: |
David Morgan |
Subject: |
Re: Success (mostly) with the testsuite |
Date: |
Wed, 25 Oct 2000 08:27:49 -0700 |
Hi Akim,
Akim Demaille wrote:
>
> | + print Direct use
>
> print ?!?!? There are only `echo's in this script. What a strange
> way of tracing a script.
No comment
...
>
> | Indirect Use without Quotes
> | {line}
> | {Two
> | lines}
>
> This is *incorrect*.
>
> We have
>
> foo="One line"
> : ${foo2=$foo}
> for i in $foo2
> do
> echo "{$i}"
> done
>
> so apparently on the *last* member of $foo was passed to foo2.
That's what it appears an echo of $foo2 just returns line.
...
>
> | Indirect Use without Quotes
> | {line}
> | {lines}
>
> Very *incorrect*. This corresponds to
>
> | foo="One line"
> | bar="Two
> | lines"
> |
> | IFS="$space$tab$nl"
> |
> | : ${foo4=$foo}
> | : ${bar4=$bar}
> |
> | for i in $foo4
> | do
> | echo "{$i}"
> | done
> |
> | for i in $bar4
> | do
> | echo "{$i}"
> | done
>
> So indeed it seems that your shell is losing the first item(s?) of the
> rhs, items being separated by the IFS.
Only when passed as ${var2=$var1} and not ${var2="$var1"}
>
> It is surprising, btw, that your shell didn't complain of anything.
No complaints.
We aren't checking any $? here and when I did it seems to be 0.
>
> Is there anybody here with an Ultrix who could run the script I sent?
> There are Ultrices at Cygnus, right? I'd like to be sure of the
> behavior of Ultrix before deciding of the right fix.
Thanks for the help - I'm sure other people on QNX (including QNX themselves)
will appreciate it.
Regards
David
- Re: Success (mostly) with the testsuite, (continued)
- Various systems (was: Success (mostly) with the testsuite), Akim Demaille, 2000/10/25
- Re: Various systems (was: Success (mostly) with the testsuite), David Morgan, 2000/10/25
- Re: Various systems (was: Success (mostly) with the testsuite), Akim Demaille, 2000/10/25
- Re: Various systems (was: Success (mostly) with the testsuite), David Morgan, 2000/10/25
- Re: Various systems (was: Success (mostly) with the testsuite), Akim Demaille, 2000/10/25
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/25
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/25
- Re: Success (mostly) with the testsuite,
David Morgan <=
- Re: Success (mostly) with the testsuite, Alexandre Oliva, 2000/10/26
- Re: Success (mostly) with the testsuite, Alexandre Oliva, 2000/10/26
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/27
- Re: Success (mostly) with the testsuite, Alexandre Oliva, 2000/10/27
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/30
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/26
- Re: Success (mostly) with the testsuite, David Morgan, 2000/10/26
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/26
RE: Success (mostly) with the testsuite, Bernard Dautrevaux, 2000/10/20