[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Unexpected IFS behaviour on 2.05 and 2.04
From: |
Earl Chew |
Subject: |
Unexpected IFS behaviour on 2.05 and 2.04 |
Date: |
12 Jul 2001 12:03:26 -0700 |
Consider the following:
bash-2.05$ A=1/2
bash-2.05$ IFS=/
bash-2.05$ for f in $A/3 ; do echo $f ; done
1
2 3
bash-2.05$
bash-2.04$ A=1/2
bash-2.04$ IFS=/
bash-2.04$ for f in $A/3 ; do echo $f ; done
1
2 3
bash-2.04$
Now running the same on 2.02, I see:
bash-2.02$ A=1/2
bash-2.02$ IFS=/
bash-2.02$ for f in $A/3 ; do echo $f ; done
1
2
3
bash-2.02$
This is the same output that I get on shell implementations on HPUX.
$ sh
$ A=1/2
$ IFS=/
$ for f in $A/3 ; do echo $f; done
1
2
3
$
Earl
- Unexpected IFS behaviour on 2.05 and 2.04,
Earl Chew <=