autoconf
[Top][All Lists]
Advanced

[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



reply via email to

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