From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: A.Main@dcs.warwick.ac.uk (Zefram)
Cc: A.Main@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu
Subject: Re: read broken in beta21
Date: Mon, 24 Jun 1996 19:38:10 +0200 (MET DST) [thread overview]
Message-ID: <199606241738.TAA05331@bolyai.cs.elte.hu> (raw)
In-Reply-To: <8282.199606241720@stone.dcs.warwick.ac.uk> from Zefram at "Jun 24, 96 06:20:36 pm"
> >What is sh?
>
> I was referring to the Bourne shell.
>
> > The line shall be split into fields (see the definition in 3.1.3) as in
> > the shell (see 3.6.5); the first field shall be assigned to the first
> > variable var, the second field to the second variable var, etc. If there
> > are fewer var operands specified than there are fields, the leftover
> > fields and their intervening separators shall be assigned to the last
> ^^^^^^^^^^^
> > var. If there are fewer fields than vars, the remaining vars shall be set
> > to empty strings.
>
> It sounds to me like trailing IFS characters are not *intervening*
> separators, and should therefore be removed.
non-whitespace IFS characters (NWICs) always separate fields. A trailing
NWIC separate a trailing empty field from the other fields. E.g.
% IFS=/ ; set -- $IFS ; echo $#
2
So the trailing NWICs are intervening separators between empty fields.
Zoltan
prev parent reply other threads:[~1996-06-24 17:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-21 17:16 Zefram
1996-06-24 11:57 ` Zoltan Hidvegi
1996-06-24 17:20 ` Zefram
1996-06-24 17:38 ` Zoltan Hidvegi [this message]
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=199606241738.TAA05331@bolyai.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=A.Main@dcs.warwick.ac.uk \
--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).