On Mon, Jul 31, 2006 at 08:18:48AM +0800, Dan Jacobson wrote: > Package: dpkg > Version: 1.13.19 > Severity: wishlist > > Implement removing at the same time as installing, > or at least catch lines like > # dpkg -r package -i file > # dpkg -i file -r package > raising an error instead of treating the final option as an argument.
This matches the behavior of the man page: dpkg [options] action ACTIONS dpkg -i | --install package_file... dpkg -r | --remove | -P | --purge package ... | -a | --pending Any argument to -r is considered as an package name. Any argument to -i is considered as an debian package (.deb) So the first command fails because it tries to remove a package named '-i', and the second command fails because dpkg fails to find a file named '-r'. Would it be valid to reject package (name or file) when they start by a dash (and stop the processing)? (with the exception of -a and --pending for --remove) Kind Regards, -- Nekral -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]