Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Bug#409179: DASH: Settings IFS=$'n' doesn't work properly

 
   Soft32 Home -> Linux2 Arch -> Bugs Dist RSS
Next:  Bug#301822: small letters for the GNUNETD_HOME pa..  
Author Message
Arno van Amersfoort

External


Since: Jan 31, 2007
Posts: 5



(Msg. 1) Posted: Wed Jan 31, 2007 2:40 pm
Post subject: Bug#409179: DASH: Settings IFS=$'n' doesn't work properly
Archived from groups: linux>debian>bugs>dist (more info?)

Package: dash
Version: 0.5.3-6

I ran into a problem after upgrading my system to testing last week,
causing one of my scripts not to work anymore. During installation I let
the installer redirect sh to dash. Although it is POSIX compliant (as
far as I know) it doesn't work properly. This was caused by the fact the
dash doesn't understand that setting IFS=$'\n' means that the seperator
is EOL. Instead dash just sees it as IFS='n' . I think it's a bug,
although not sure...

--
Ing. A.C.J. van Amersfoort (Arno)
Department Of Electronics (ELD, k1007)
Huygens Laboratory
Leiden University
P.O. Box 9504
Niels Bohrweg 2
2333 CA Leiden
The Netherlands
----------------------------------------------------------------
Phone : +31-(0)71-527.1894 Fax: +31-(0)71-527.5819
E-mail: a.c.j.van.amersfoort.DeleteThis@eld.physics.leidenuniv.nl
----------------------------------------------------------------
Arno's (Linux firewall) homepage: http://rocky.eld.leidenuniv.nl





--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Login to vote
Gerrit Pape

External


Since: Nov 20, 2006
Posts: 75



(Msg. 2) Posted: Wed Jan 31, 2007 3:00 pm
Post subject: Bug#409179: DASH: Settings IFS=$'n' doesn't work properly [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, Jan 31, 2007 at 02:18:03PM +0100, Arno van Amersfoort wrote:
> I ran into a problem after upgrading my system to testing last week,
> causing one of my scripts not to work anymore. During installation I let
> the installer redirect sh to dash. Although it is POSIX compliant (as
> far as I know) it doesn't work properly. This was caused by the fact the
> dash doesn't understand that setting IFS=$'\n' means that the seperator
> is EOL. Instead dash just sees it as IFS='n' . I think it's a bug,
> although not sure...

Hi, a IFS=$'\n' syntax isn't specified in POSIX, you should set it this
way:

$ IFS='
'
$

Regards, Gerrit.


--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Bug#399286: xen-tools: Fail to work when /bin/sh -> dash - Package: xen-tools Version: 2.7-4 Severity: important Tags: patch I use dash as /bin/sh to make sure shutdown work wit...

Bug#410084: fai-doc: shell scripts do not work when /bin/s.. - Package: fai-doc Version: 3.1.6 Severity: important Most configuration scripts of the simple examples are shell script...

Bug#297195: OK, but still doesn't work properly - Hi, You're right that it doesn't crash anymore, but it also doesn't work: when "clicking" a zip the archive...

Bug#323035: dont work properly - or Alot of websites http://img444.imageshack.us/img444/5527/nha5rq4.jpg in Toolbar Home About this group Join -- To...

Bug#416155: mpeg2dec_onroot does not work properly on amd64 - Package: electricsheep Version: 2.6.8 I compiled electricsheep on NetBSD both on my i386 machine and on my amd64..

Bug#404015: libglib2.0-0: nautilus cannot work properly wi.. - Package: libglib2.0-0 Version: 2.12.4-2 Severity: important Hi, It seems the new version 2.12.5-3 of glib2 make the...
       Soft32 Home -> Linux2 Arch -> Bugs Dist All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
 PDA



[ Contact us | Terms of Service/Privacy Policy ]