[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Funny bug in Solaris xpg4 sh w.r.t. globbing mixed with variable exp
From: |
Stefano Lattarini |
Subject: |
Re: Funny bug in Solaris xpg4 sh w.r.t. globbing mixed with variable expansions |
Date: |
Sat, 24 Dec 2011 17:02:45 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 |
Hello autoconfers.
On 11/19/2011 07:44 PM, Stefano Lattarini wrote:
> 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).
>
[a month later...]
I'm not anymore sure that this bug is worth documenting, since it is more of
a one-shot, corner-case, weirdo-looking bug rather than a more systematic
limitation or incompatibility. What do you think?
BTW, could anyone verify whether this bug is still present in the XPG4 shell
(usr/xpg4/bin/sh) of Solaris 11 as well? If yes, to whom should it be
reported?
Thanks,
Stefano
- Re: Funny bug in Solaris xpg4 sh w.r.t. globbing mixed with variable expansions,
Stefano Lattarini <=