Glenn Fowler wrote:
> On Wed, 28 Jun 2006 00:59:24 +0200 Roland Mainz wrote:
> > ## ./src/cmd/ksh93/tests/options.sh
> >         ./src/cmd/ksh93/tests/options.sh[99]: ** not working with -G
> > option
> >         ./src/cmd/ksh93/tests/options.sh[101]: **/*.c not working with
> > -G option
> >         ./src/cmd/ksh93/tests/options.sh[118]: ./-ksh ignores .profile
> 
> run this snippet and post options-G.out
> ---
> SHELL=the-ksh-under-test
> cat > options-G.sh <<'!'
> function err_exit
> {
>         print -r -u2 -- "$@"
> }
> if      command set -G 2> /dev/null
> then    mkdir /tmp/ksh$$
>         cd /tmp/ksh$$
>         mkdir bar foo
>         > bar.c  > bam.c
>         > bar/foo.c > bar/bam.c
>         > foo/bam.c
>         set -- **.c
>         expected='bam.c bar.c'
>         [[ $* == $expected ]] || err_exit "-G **.c failed -- expected 
> '$expected', got '$*'"
>         set -- **
>         expected='bam.c bar bar.c bar/bam.c bar/foo.c foo foo/bam.c'
>         [[ $* == $expected ]] || err_exit "-G ** failed -- expected 
> '$expected', got '$*'"
>         set -- **/*.c
>         expected='bam.c bar.c bar/bam.c bar/foo.c foo/bam.c'
>         [[ $* == $expected ]] || err_exit "-G **/*.c failed -- expected 
> '$expected', got '$*'"
>         set -- **/bam.c
>         expected='bam.c bar/bam.c foo/bam.c'
>         [[ $* == $expected ]] || err_exit "-G **/bam.c failed -- expected 
> '$expected', got '$*'"
>         cd ~-
>         rm -rf /tmp/ksh$$
> fi
> !
> PS1='+$LINENO+ ' $SHELL -x options-G.sh > options-G.out 2>&1

See attached tar+gzipped results
("ksh93_test20060628_problem001_results.tar.gz").

Unfortunately the issue does not appear always - currently I only get
this
-- snip --
...
## ./src/cmd/ksh93/tests/heredoc.sh
## ./src/cmd/ksh93/tests/io.sh
## ./src/cmd/ksh93/tests/nameref.sh
## ./src/cmd/ksh93/tests/options.sh
        ./src/cmd/ksh93/tests/options.sh[118]: ./-ksh ignores .profile
## ./src/cmd/ksh93/tests/path.sh
## ./src/cmd/ksh93/tests/quoting.sh
## ./src/cmd/ksh93/tests/quoting2.sh
## ./src/cmd/ksh93/tests/return.sh
...
-- snip --

After another hour of digging I realised that I have the new "map.c" in
my tree. Removing the patch seems to trigger the problem in the original
report - and re-appying the "map.c" change fixes it (except
"./src/cmd/ksh93/tests/options.sh[118]: ./-ksh ignores .profile", e.g 
only "./src/cmd/ksh93/tests/options.sh[99]" and
"./src/cmd/ksh93/tests/options.sh[101]" disappear).
Fun... ;-/

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksh93_test20060628_problem001_results.tar.gz
Type: application/x-gzip
Size: 754 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/attachments/20060628/00d7ee3b/attachment.bin>

Reply via email to