Date: Thu, 28 Jun 2012 23:27:32 +0100 From: Chris Rees <crees@FreeBSD.org> To: "Ronald F. Guilmette" <rfg@tristatelogic.com> Cc: freebsd-standards@freebsd.org Subject: Re: bin/169500: /bin/expr improperly requires forward slash to be escaped Message-ID: <CADLo839uwHO19dQ2pwxRUwzr-ROwWdbydih0KH5YD9zM5PqNXg@mail.gmail.com> In-Reply-To: <201206282220.q5SMKDVs069884@freefall.freebsd.org> References: <201206282220.q5SMKDVs069884@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 28 June 2012 23:20, Ronald F. Guilmette <rfg@tristatelogic.com> wrote: > The following reply was made to PR bin/169500; it has been noted by GNATS= . > > From: "Ronald F. Guilmette" <rfg@tristatelogic.com> > To: Garrett Wollman <wollman@hergotha.csail.mit.edu> > Cc: freebsd-gnats-submit@freebsd.org > Subject: Re: bin/169500: /bin/expr improperly requires forward slash to b= e escaped > Date: Thu, 28 Jun 2012 15:11:55 -0700 > > =A0In message <201206280136.q5S1aOQO093902@hergotha.csail.mit.edu>, you w= rote: > > =A0>In article <20120627214105.A1EA35081B@segfault.tristatelogic.com>, > =A0>rfg@tristatelogic.com writes: > =A0> > =A0>>According to my reading of Sections 2.8.3.1.1 and 2.8.3.1.2 of the A= NSI/IEEE > =A0>>standard 1003.2, a forward slash character (/) is an "ordinary" basi= c > =A0>>regular expression (BRE) character, and as such can be used in a BRE= alone > =A0>>to match itself. > =A0> > =A0>IEEE Std.1003.2 was obsoleted by the publication of IEEE > =A0>Std.1003.1-2001; your reference is at least fifteen years old. > > =A0Yes. =A0My bad. =A0Sorry. > > =A0(These publications are quite expensive, as you may know, and thus, I = have > =A0not updated mine in quite some time.) > > =A0>>As far as I can tell, backslash-escaping of this specific character > =A0>>should not be required within BREs. > =A0> > =A0>Nothing to do with the BRE-ness. =A0As the 2001 edition of the standa= rd > =A0>states (page 429, lines 16598-16599): > =A0> > =A0> =A0 =A0 =A0A string argument is an argument that cannot be identifie= d as > =A0> =A0 =A0 =A0an integer argument or as one of the expression operator > =A0> =A0 =A0 =A0symbols shown in the OPERANDS section. > > =A0Humm... OK. =A0How do I retract my PR? No need, it's closed. Don't worry about it :) Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo839uwHO19dQ2pwxRUwzr-ROwWdbydih0KH5YD9zM5PqNXg>