delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/20/10:54:40

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_LAPOSTE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4D861532.6050306@laposte.net>
Date: Sun, 20 Mar 2011 15:54:42 +0100
From: Cyrille Lefevre <cyrille DOT lefevre-lists AT laposte DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: IFS/read dash bug (was Re: Problems with the new base-files-4.0-5?)
References: <4D828E8E DOT 6020607 AT alice DOT it> <4D829D52 DOT 3040706 AT laposte DOT net> <20110318134646 DOT GA10633 AT jethro DOT local DOT lan> <4D852F7A DOT 1000006 AT laposte DOT net>
In-Reply-To: <4D852F7A.1000006@laposte.net>
X-me-spamlevel: not-spam
X-me-spamrating: 44.040405
X-me-spamcause: OK, (20)(0000)gggruggvucftvghtrhhoucdtuddrfeduhedrudegucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecufghrlhcuvffnffculddvtddm
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Le 19/03/2011 23:34, Cyrille Lefevre a =E9crit :
>
>
> Le 18/03/2011 14:46, David Sastre a =E9crit :
>
>>> [ -e "${p}" ]&& IFS=3D',' read -r PRINTER dummy< "${p}"
>>
>> Works in bash, posh, mksh and zsh, but fails (at least for me) in
>> dash.
>
> regarding SUSv3, read is not a special builtin, so, should work under
> every shell, if that fails under dash, it should be fixed.

fixed in git depot as of :

2010-05-27 	Herbert Xu	[VAR] Do not poplocalvars prematurely on regular=20
utilitie
http://git.kernel.org/?p=3Dutils/dash/dash.git;a=3Dsnapshot;h=3D1d806ac1fba=
fb867f6252e184e1be05c0829ab71;sf=3Dtgz

$ echo a b,c | ./dash -c 'IFS=3D, read a b; echo $a'
a b

however, there are a lot of change on 2010-05-27/28, the last one is :
http://git.kernel.org/?p=3Dutils/dash/dash.git;a=3Dsnapshot;h=3D0cda2e1f8d8=
222fa497f808b54a2146d60e304f5;sf=3Dtgz

how about to update dash from git since the last release is almost one=20
year old ?

Regards,

Cyrille Lefevre
--=20
mailto:Cyrille DOT Lefevre-lists AT laposte DOT net



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019