From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3) with ESMTP id IAA24579 for ; Tue, 21 May 1996 08:45:53 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA15210; Mon, 20 May 1996 18:30:23 -0400 (EDT) Resent-Date: Mon, 20 May 1996 18:30:23 -0400 (EDT) From: Hrvoje.Niksic@public.srce.hr (Hrvoje Niksic) Message-Id: <199605202225.AAA16309@jagor.srce.hr> Subject: Re: 8-bit patch for zle_tricky.c To: A.Main@dcs.warwick.ac.uk (Zefram) Date: Tue, 21 May 1996 00:25:37 +0200 (MET DST) Cc: hzoli@cs.elte.hu, A.Main@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu In-Reply-To: <18184.199605201754@stone.dcs.warwick.ac.uk> from Zefram at "May 20, 96 06:54:57 pm" Reply-To: hniksic@public.srce.hr X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"tZna-1.0.aj3._9Fen"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1105 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu In your mail, you said: > >I do not think so. Neither bash nor ksh93 does this. Look: > > > >% ksh > >$ count () { echo $# ; } > >$ IFS=/ > >$ count as/df/gh > >1 > > > >SH_WORD_SPLIT only changes the result of substitutions. > > Hmm. ksh doesn't field split there, but sh does. I think we should > eventually have an option to emulate this, but it's not essential. I think that bash intentionally avoids word-splitting in these cases, to close the infamous IFS-security hole in sh, for setuid scripts/programs. -- hniksic@srce.hr | Student of electrical engineering hniksic@fly.cc.fer.hr | University of Zagreb, Croatia ------------------------------------------------------------------ `VI' - An editor used by those heretics that don't subscribe to the Emacs religion.