[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Success (mostly) with the testsuite
From: |
Akim Demaille |
Subject: |
Re: Success (mostly) with the testsuite |
Date: |
25 Oct 2000 12:26:19 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
| + print Direct use
print ?!?!? There are only `echo's in this script. What a strange
way of tracing a script.
| Direct use
| {One}
| {line}
| {Two
| lines}
This is correct.
| Indirect Use with Quotes
| {One}
| {line}
| {Two
| lines}
This is correct.
| 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.
| Direct use
| {One}
| {line}
| {Two}
| {lines}
Correct.
| Indirect Use with Quotes
| {One}
| {line}
| {Two}
| {lines}
Correct.
| 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.
It is surprising, btw, that your shell didn't complain of anything.
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.
- 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 <=
- Re: Success (mostly) with the testsuite, David Morgan, 2000/10/25
- 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