[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[50 character or so descriptive subject here (for reference)]
From: |
martin leisner |
Subject: |
[50 character or so descriptive subject here (for reference)] |
Date: |
Wed, 16 May 2001 10:32:40 -0400 (EDT) |
Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.6
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc'
-DCONF_OSTYPE='solaris2.6' -DCONF_MACHTYPE='sparc-sun-solaris2.6'
-DCONF_VENDOR='sun' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib
-I/home/mleisner/gnu/include -g -O2
uname output: SunOS valisk 5.7 Generic_106541-10 sun4u sparc SUNW,Ultra-60
Machine Type: sparc-sun-solaris2.6
Bash Version: 2.04
Patch Level: 0
Release Status: release
Description:
very strange argument splitting example.
Saw this in man-1.5i configuration.
This works correctly on:
bash1
ksh (on solaris 2.7) (not sure which one)
sh (on on solaris 2.7)
This doesn't work with:
bash2 (tried 2.04 and 2.05)
pdksh
Repeat-By:
IFS=":$IFS"
FOO=/fee:/fi:/fo:/fum
for i in /bin:/usr/bin/:/usr/ucb:$FOO
do
case $i in
/*)
echo $i
;;
esac
done
On sh on solaris, I get:
:1 mleisner@valisk; sh ./test.shell
/bin
/usr/bin/
/usr/ucb
/fee
/fi
/fo
/fum
With bash2 (.04|.05)
:1 mleisner@valisk; bash ./test.shell
/bin /usr/bin/ /usr/ucb /fee
/fi
/fo
/fum