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

According to Sebastian Kreft on 9/12/2006 8:51 PM:
> I don't know if it is a standard of expr, but I think that is not intuitive
> to write a plus symbol before the string substr if I want to get the length
> of it.

POSIX states "The use of string arguments length, substr, index, or match
produces unspecified results."
(http://www.opengroup.org/onlinepubs/009695399/utilities/expr.html)  This
is because these four strings can also be operators.  The + is necessary
to tell expr that you want it interpreted as a string, not an operator.

- --
Life is short - so eat dessert first!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFCAXJ84KuGfSFAYARAk2QAJ9BA5J6nnJwxCRT1hSFTjbRmQ0e7gCgyYJw
A39/5WHkkmD7XyQQptv5x+4=
=mTMs
-----END PGP SIGNATURE-----


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to