zsh-workers
 help / color / mirror / code / Atom feed
From: Hrvoje.Niksic@public.srce.hr (Hrvoje Niksic)
To: A.Main@dcs.warwick.ac.uk (Zefram)
Cc: hzoli@cs.elte.hu, A.Main@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu
Subject: Re: 8-bit patch for zle_tricky.c
Date: Tue, 21 May 1996 00:25:37 +0200 (MET DST)	[thread overview]
Message-ID: <199605202225.AAA16309@jagor.srce.hr> (raw)
In-Reply-To: <18184.199605201754@stone.dcs.warwick.ac.uk> from Zefram at "May 20, 96 06:54:57 pm"

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.



  reply	other threads:[~1996-05-20 22:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-18 11:51 Zefram
1996-05-19 22:34 ` Zoltan Hidvegi
1996-05-20 15:58   ` Zefram
1996-05-20 17:21     ` Zoltan Hidvegi
1996-05-20 17:03       ` Bart Schaefer
1996-05-20 18:36         ` Zoltan Hidvegi
1996-05-20 21:09           ` Zefram
1996-05-20 22:43             ` Hrvoje Niksic
1996-05-20 22:55               ` Zefram
1996-05-20 23:08                 ` Hrvoje Niksic
1996-05-20 23:36                   ` Zefram
1996-05-20 17:54       ` Zefram
1996-05-20 22:25         ` Hrvoje Niksic [this message]
1996-05-20  1:01 ` Zoltan Hidvegi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199605202225.AAA16309@jagor.srce.hr \
    --to=hrvoje.niksic@public.srce.hr \
    --cc=A.Main@dcs.warwick.ac.uk \
    --cc=hniksic@public.srce.hr \
    --cc=hzoli@cs.elte.hu \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).