FS#20950 - pacman should refuse to run when it doesn't understand one of its arguments
Attached to Project:
Pacman
Opened by Vincent Cappe (vcap) - Sunday, 26 September 2010, 12:12 GMT
Last edited by Allan McRae (Allan) - Tuesday, 15 October 2013, 03:03 GMT
Opened by Vincent Cappe (vcap) - Sunday, 26 September 2010, 12:12 GMT
Last edited by Allan McRae (Allan) - Tuesday, 15 October 2013, 03:03 GMT
|
Details
case in point: pacman -conf pacman-install.conf -Syc
First, it happily takes the -conf despite not understanding it (should be --config), and uses /etc/pacman.conf instead. This can get very nasty if the user is not paying attention (hence Severity: High). Second, with '-Syc' (and '-Scy'), it only does the 'c' and not the 'y'. If some combinations of options are invalid, it should also refuse to run, or at least warn the user that some arguments are ignored. |
This task depends upon
Closed by Allan McRae (Allan)
Tuesday, 15 October 2013, 03:03 GMT
Reason for closing: Fixed
Additional comments about closing: commits culminating in 2c11e5da
Tuesday, 15 October 2013, 03:03 GMT
Reason for closing: Fixed
Additional comments about closing: commits culminating in 2c11e5da
It has long been known that pacman does not detect invalid combinations of flags, but no one cared enough to improve it.
Actually there are many more important problems or wanted features, and no one cares enough to code them either.
At least 'pacman -conf pacman-install.conf -Syc' gives an error now but not a very verbose one so I don't even know what makes it fail.
I think is an option that does not harm, and should be easy enough to implement.