Date: Mon, 28 Apr 1997 09:09:34 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: steve@freefall.FreeBSD.ORG (Steve Price) Cc: jin@adv-pc-1.lbl.gov, steve@hub.freebsd.org, freebsd-bugs@hub.freebsd.org Subject: Re: bin/3387 Message-ID: <19970428090934.IE48668@uriah.heep.sax.de> In-Reply-To: <199704280401.VAA19208@hub.freebsd.org>; from Steve Price on Apr 27, 1997 21:01:26 -0700 References: <199704280401.VAA19208@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
As Steve Price wrote:
> Synopsis: sh mis-interpret the file name / awk failure
>
> State-Changed-From-To: open-closed
> State-Changed-By: steve
> State-Changed-When: Sun Apr 27 20:58:59 PDT 1997
> State-Changed-Why:
> This is not a bug, rather a misfeature that ksh also
> exhibits. Maybe our sh(1) could be smarter, but POSIX
> backs ksh with all it's inequities. :(
Well, but are you sure that awk didn't misbehave?
An extended regular expression can be used to separate fields by using
the -F ERE option or by assigning a string containing the expression to
the built-in variable FS. The default value of the FS variable shall be
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
a single <space> character. The following describes FS behavior:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
(1) If FS is a single character:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(a) If FS is <space>, skip leading and trailing <blank>s;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fields shall be delimited by sets of one or more <blank>s.
So it should skip the trailing blank.
--
cheers, J"org
joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970428090934.IE48668>
