[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash IFS bug....
From: |
kiexpert |
Subject: |
bash IFS bug.... |
Date: |
Thu, 15 Mar 2001 13:35:34 +0900 |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DSHELL -DHAVE_CONFIG_H -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -I. -I. -I./include -I./lib -I/usr/include -O2
-march=i386 -mcpu=i686
uname output: Linux kiexpert.nobreak.com 2.2.17-8wl2 #1 Sun Jan 14 22:01:31 KST
2001 i686 unknown
Machine Type: i386-redhat-linux-gnu
Bash Version: 2.04
Patch Level: 11
Release Status: release
Description:
[Detailed description of the problem, suggestion, or complaint.]
parsing '/dos/work/win98sys/Program Files/Internet Explorer' with IFS='/'
each loop show the results like below
------------ begin of below --------------
''
'dos'
'work'
'win98sys'
'Program'
'Files'
'Internet'
'Explorer'
--------------- end of below --------------
i think it seems has many trouble with many old bash scripts...
this is bug??? or added function???
reply me please....
Thank you for reading my troubled english letter :-)
bye~~~!!
Repeat-By:
[Describe the sequence of events that causes the problem
to occur.]
troubled script is getting filename and extension from the full-path like
below...
function parse_NE() {(
IFS="/"
rv=""
for f in $*; do
rv=$f
done
echo "$rv"
);}
this script don't work perfectly... T.T
please help me...
Fix:
[Description of how to fix the problem. If you don't know a
fix for the problem, don't include this section.]
- bash IFS bug....,
kiexpert <=