Bug 6568 - output is send to wrong file
Summary: output is send to wrong file
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: eject (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Grigory Ustinov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-18 19:28 MSD by burov dmitry
Modified: 2007-06-29 16:58 MSD (History)
3 users (show)

See Also:


Attachments
Patch to send usage info to stdout (970 bytes, patch)
2007-06-27 05:11 MSD, Evgenii Terechkov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description burov dmitry 2005-04-18 19:28:18 MSD
'eject --help': output is send to stderr instead of stdout

http://comments.gmane.org/gmane.linux.altlinux.sisyphus/13977

PS: it is told many utilities share the same erratic behavior.
Should this bug be eject-only or is it to be collector of all such tools ?


Steps to Reproduce:
eject --help | less
Comment 1 Michael Shigorin 2006-09-03 20:47:58 MSD
А это точно бага?  Встречается достаточно часто, чтобы смахивать на выбор.

С одной стороны, в общем случае такое usage() вывалится через любые конвейеры; с
другой стороны, и через | less тоже ;-)

Правда, именно eject вроде нечасто в конвейерах встречается...
Comment 2 Evgenii Terechkov 2007-06-27 05:11:55 MSD
Created attachment 2054 [details]
Patch to send usage info to stdout
Comment 3 Dmitry V. Levin 2007-06-28 17:16:45 MSD
Usage, выводимый в случае неправильного запуска программы, должен быть направлен
на stderr; всё остальное (явный --usage и/или --help) -- на stdout.
Comment 4 Sergey V Turchin 2007-06-28 19:53:02 MSD
eject-2.1.5-alt3
Comment 5 Evgenii Terechkov 2007-06-29 16:07:58 MSD
(In reply to comment #3)
> Usage, выводимый в случае неправильного запуска программы, должен быть направлен
> на stderr; всё остальное (явный --usage и/или --help) -- на stdout.

Логично. Но, к сожаленью, приложенный патч такого поведения не обеспечивает
(лишь вторую часть), а написать правильный (хорошо) мне не под силу.
Comment 6 Sergey V Turchin 2007-06-29 16:58:39 MSD
(In reply to comment #5)
> приложенный патч такого поведения не обеспечивает
Какого? eject --help | less ? Обеспечивает