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 EAA20293 for ; Tue, 21 May 1996 04:59:08 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id OAA10142; Mon, 20 May 1996 14:37:26 -0400 (EDT) Resent-Date: Mon, 20 May 1996 14:37:26 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199605201836.UAA05688@bolyai.cs.elte.hu> Subject: Re: 8-bit patch for zle_tricky.c To: schaefer@nbn.com Date: Mon, 20 May 1996 20:36:16 +0200 (MET DST) Cc: A.Main@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu In-Reply-To: <960520100350.ZM22705@candle.brasslantern.com> from Bart Schaefer at "May 20, 96 10:03:49 am" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 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: <"5IBBW.0.OU2.blBen"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1103 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > } > Adding it to $IFS has no effect in this matter, because zsh does not do > } > field splitting on normal words. (It should, at least if SH_WORD_SPLIT > } > is set.) > } > } 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. > > zsh% /bin/sh > $ IFS=/ > $ echo/bar > bar > $ exit/1 > zsh% echo $? > 1 > zsh% Yes, the original Bourne Shell used IFS in the lexer to separate words but I think that this does not conform the POSIX Shell and Utilities standard. Also it may be a security hole if IFS is exported. That's why bash and ksh does not use IFS here, and zsh should not use it either. Zoltan