bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash IFS bug....


From: Sabrina BARDIN
Subject: Re: bash IFS bug....
Date: Thu, 15 Mar 2001 17:43:01 +0100

hello !


kiexpert@nobreak.com a écrit :

> 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.]

--
<html>
<br>
<font face="Times New Roman, 
Times"><b>------------------------------------------<br>
Sabrina BARDIN<br>
<br>
E-Mail : </font><font 
color="#0000FF">Sabrina.Bardin@etudiant.univ-nancy2.fr</font></b></html>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]