autoconf
[Top][All Lists]
Advanced

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

Re: Success (mostly) with the testsuite


From: Alexandre Oliva
Subject: Re: Success (mostly) with the testsuite
Date: 28 Oct 2000 01:10:58 -0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

On Oct 27, 2000, Akim Demaille <address@hidden> wrote:

> ----------------------------------------
> default="a b c"
> : ${list1=$default}
> : ${list2="$default"}

> echo "$list1" | cat -v
> echo "$list2" | cat -v
> ----------------------------------------

> gives two different results?

Nope, I get the same output for both lines.  Why would it be
different?

> How do these guy behave?

> ----------------------------------------
> default="a b c"
> : list1=${list1-$default}
> : list2=${list2-"$default"}

> echo "$list1" | cat -v
> echo "$list2" | cat -v
> ----------------------------------------

This won't even set list1 and list2, since `:' == `true' will be run
with `list[12]=...', which is not what you want.  Removing `:', I get
the expected output.

> default="a b c"
> : list1=${list1=$default}
> : list2=${list2="$default"}

> echo "$list1" | cat -v
> echo "$list2" | cat -v

This works on Ultrix both with and without `:'.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



reply via email to

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