bug-autoconf
[Top][All Lists]
Advanced

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

Funny bug in Solaris xpg4 sh w.r.t. globbing mixed with variable expansi


From: Stefano Lattarini
Subject: Funny bug in Solaris xpg4 sh w.r.t. globbing mixed with variable expansions
Date: Sat, 19 Nov 2011 19:44:32 +0100
User-agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; )

Found this while testing automake on Solaris 10 with /usr/xpg4/bin/sh
as $CONFIG_SHELL.

 $ mkdir new && cd new
 $ touch foo
 $ /bin/sh -c 'a=.; echo "$a"/*' # Fine.
 ./foo
 $ /usr/xpg4/bin/sh -c 'a=.; echo "$a"/*' # Fine as well.
 ./foo
 $ /bin/sh -c 'a=. b=; echo "$b$a"/*' # Also fine.
 ./foo
 $ /usr/xpg4/bin/sh -c 'a=. b=; echo "$b$a"/*' # Bug!
 ./*

The bug should probably be documented somewhere in the autoconf
manual.  I might attempt a patch in the next days if nobody beats
me (but no promises).

Regards,
  Stefano



reply via email to

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