bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coreutils] coreutils-7.0 expr exposes long-standing bug in matlab s


From: Eric Blake
Subject: Re: [coreutils] coreutils-7.0 expr exposes long-standing bug in matlab startup script
Date: Tue, 14 Oct 2008 06:00:46 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Pádraig Brady on 10/14/2008 3:47 AM:
>> With native versions of expr, and expr from GNU coreutils prior to
>> version 7.0, the expansion of lscmd usually begins "-rw-r--r--", but
>> the leading hyphen does not cause the word to be treated as an option.
> 
> I think that was an unintended change introduced when adding getopt to expr:
> http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=f65cafd67b33009d23f940968bbe7f9a08d6fe13

Unintended or not, getopt's side effect of complaining about unrecognized
options is necessary for standard compliance (ie. all earlier versions of
coreutils had a bug in this area), so we should not revert it.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkj0ie4ACgkQ84KuGfSFAYCNCgCfYTK6YOxq7Fo9lTZe82zYsgUi
nwwAoKxiWo7zzo7kbq1C9Mb70glnE4oz
=qBCO
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]