tag 311545 moreinfo thanks Hi,
On Wed, 2005-06-01 at 21:05:52 +0300, Jari Aalto wrote: > Package: dpkg > Version: 1.10.27 > Severity: normal > > If update-alternatives is called from script, the script cannot > know if the program asked fromt he use a question or not. Like > in this situation: > > # update-alternatives --config x-www-browser > > There is only 1 program which provides x-www-browser > (/usr/bin/mozilla-firefox). Nothing to configure. > > The status code is 0. However if that message were sent to > stderr, then this situation could be noticed: > > update-alternatives --config x-www-browser 2> notes.log > > if [ -s notes.log ]; then > # ... something that prevented configuration, act upon it. > fi This is fragile (assuming that it will produce output), ugly (the usage of the temporary file) and wrong (to output non-error to stderr). There was no error on that invokation, so why do you want to know if it could or not change the alternatives? Do you have a real example for which you would need such behaviour (or a similar one)? otherwise I'm tempted to close this bug report strightaway. > Right now when the message is printed th stdout, it is mixed with > the regular messages (the menu message to select item). > > Please change to use stderr for informational messages like these. As you say, it's an information message not an error message, it does not belong in stderr. regards, guillem -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]