Bug#691422: init-functions: order of arguments is not context-free

Arno Töll <[email protected]>
Newsgroups gmane.linux.debian.devel.lsb
Message-ID <50969F9B.3030504__35832.1061860353$1352048786$gmane$org@debian.org>
On 04.11.2012 13:21, Didier 'OdyX' Raboud wrote:
> Same here; that makes two maintainers' opinions. :) Hereby tagging.

Given GNU style option parsers allow this, and pretty much everyone
emulates GNU behavior in our Linux centric world, this breaks user's
expectations (well, it did for me :>).

[arno@snowball]$ ls -l /lib/lsb/init-functions
-rw-r--r-- 1 root root 11433 Mai 30 16:01 /lib/lsb/init-functions
[arno@snowball]$ ls /lib/lsb/init-functions -l
-rw-r--r-- 1 root root 11433 Mai 30 16:01 /lib/lsb/init-functions

That said, I can live with you not wanting to fix it, but please give an
error message at least, if you got an unexpected keyword argument after
a positional if you do not intend to support it:

[arno@snowball]$ dpkg lsb-base -l
dpkg: error: need an action option
...
[arno@snowball]$ dpkg -l lsb-base
....
ii  lsb-base 4.1+Debian7 all  Linux Standard Base 4.1 init script
functionality




-- 
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D
signature.asc (application/pgp-signature, 900 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJQlp+iAAoJEMcrUe6dgPNtkZUP/j7c4mBgrhpFp9JBGyu5pTB3
MeJ73kwe+cdpLkVKy1A/5Y4Nwt41XHVbauO00Re9AEQkRkPxK7p8tjKdGcAM3Wm8
82D0rCnrKdIhaDHzU1/YOmbVCZHYz4MHHVGnGT1iYyoLym5K9YnGYHchC7yR3t5a
cfVOZcjXap2pF66DT7AIjTnCUrAdptVNwjd9RD56hGN5H/XMHPQ5Agg6gvKAfZrN
X8F31pKagns3F0sUb84rYekQ4qNyo3ciF0HihOSByQ4SglPN1kyPAcqHXDtVhwzv
fRqnbScpIfxdvWpVZVZIITc75j7pIelhbwDvlLknZ9nBYaNszfGXKJm/Vcivr3uO
d3hQqtuIL6b9tyjxf+1DrdRX+A4B4EcNppGe0MeyWs9DmjqN0Ax4gLZrLta43tGQ
jFExsTXvZKfOt5j+mqgyA/H9TJ3SLlyfwegx3QF8gRNxa3Wzf+yQbesfniUyV0DW
W64+JVb7ltSzDHAIEZGQC9PC32fzVHS1+m4D9CIfA6NG2PqJsxxgshq0fYvpVerE
ofFjgy7tIimxQIjZ1oW3RxINSqz1bGZEEiWYqOsR7K8HWd0lT7En46JupLBIOxSj
56NYQ/eIZcM95zMcFTU1GV9Wi6LZPRqD46Pgter6Nr/4wkFX7xtSATwHwZuSsm1o
lDJc/0jchbsihy5WdlT8
=XEUy
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.