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

On 3/20/2014 1:22 PM, Daniel Baumann wrote:
> there's no standard saying that how --version should be handled,
> and thus this case is handled differently by every tool, there are
> many that return 0 but there as many that return 1.

The standard says that !0 means there was an error, regardless of what
options you gave.  I can not find one single other tool ( and I've
just checked over 50 ) that returns a failure code when printing its
version.

> if you want to change the world, please do that in a coordinated
> way in all of debian. there is no point in opening one bug against
> one package requesting it to be changed when there's no clear
> consensus first.

This is the /only/ package I can find that doesn't conform to the
standard consensus.

> should i be wrong and there's an existing standard (i checked sus
> and gnu standards, but they don't cover it) for the --version or
> --help case, let me know, otherwise i'm going to close the bug.

Your search is too narrow.  The standard is simply whether or not an
error or failure occurred, regardless of whether you are asking for
- --version or not.  Since no error or failure has occurred, returning a
failure status that breaks calling scripts is the wrong thing to do.

> which is why all portable shell scripts have to use 'true' in that
> case, no news there.

No, throwing an || true in there would mask any *real* errors.  The
test suite script I was working on when I found this bug was actually
calling mkfs.* -V to test whether the corresponding utility is
installed and executable so that it can skip that filesystem if the
tools are missing.  NTFS was the only filesystem that incorrectly
mislead the script into thinking it was not installed.

> -done and close are equivalent. please don't try to press your 
> preferences upon others, it's annoying.

No, they are not.  See https://www.debian.org/Bugs/server-control#close.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTKy95AAoJEI5FoCIzSKrwlIQH/RBsVMqE1MJL3TYvMKph8Bu0
4+olTKJQaDQnHKezkxR9Wkz6RYRNP02XzsDTpDYZW6dUX7DCUJMoyAtv/mynxsEb
H6hDkM8RYjzp2C+NiD+Fm1iVdfONeeiF066Q7T6KnupEnwh2GDvz8MpwZt/LSgt4
Yi4/Vr7nr9+U5TwmXgNgx8vZuJBcJgW7SbogTjV0nP836uRog/I8VFZQlZObi7Xs
2ZdKZtQxeAVdhgB09ocXwc2stnNrdX6QiLvvX5qsvEjAvpwNLN8/htAB7UtrxVVw
2OAbDFXePbzIiOaz+ENYcuKnxCRcoK4fV5R1UjICd+raVODQMMRLytLtBo7ahGA=
=bp2b
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to