dpkg (1.20.0) experimental; urgency=medium
[ Guillem Jover ]
* perl: Switch Getopt::Long from bundling to bundling_values. This means
the few scripts using Getopt::Long will stop accepting options in the
form «-ab» for «-a -b», which is not future-proof, as it does not allow
these options to get new arguments without making them ambiguous.
On Sat, 27 Jun 2020, root wrote:
dpkg (1.20.0) experimental; urgency=medium
[ Guillem Jover ]
* perl: Switch Getopt::Long from bundling to bundling_values. This means
the few scripts using Getopt::Long will stop accepting options in the
form «-ab» for «-a -b», which is not future-proof, as it does not allow
these options to get new arguments without making them ambiguous.
You shouldn’t do that for two reasons:
1. It breaks existing users that use the short form.
2. For your example, if -a were to ever gain an argument, the existing
-b is silently used as the argument and not parsed as option any
more breaking everything horribly.
For this reason any existing option MUST NOT get an argument later.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 68:25:40 |
Calls: | 6,655 |
Calls today: | 1 |
Files: | 12,200 |
Messages: | 5,332,032 |
Posted today: | 1 |