From owner-freebsd-bugs Mon Apr 28 00:15:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA28202 for bugs-outgoing; Mon, 28 Apr 1997 00:15:13 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id AAA28188; Mon, 28 Apr 1997 00:15:07 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA02743; Mon, 28 Apr 1997 09:15:05 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id JAA02634; Mon, 28 Apr 1997 09:09:34 +0200 (MET DST) Message-ID: <19970428090934.IE48668@uriah.heep.sax.de> 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 References: <199704280401.VAA19208@hub.freebsd.org> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199704280401.VAA19208@hub.freebsd.org>; from Steve Price on Apr 27, 1997 21:01:26 -0700 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 character. The following describes FS behavior: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ (1) If FS is a single character: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (a) If FS is , skip leading and trailing s; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ fields shall be delimited by sets of one or more 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. ;-)