Bug 24843 - xephyr: Send --help to stdout, not stderr
Summary: xephyr: Send --help to stdout, not stderr
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xephyr (show other bugs)
Version: 7.4 (2008.09)
Hardware: Other All
: medium normal
Assignee: Adam Jackson
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-01 13:39 UTC by Jari Aalto
Modified: 2018-12-13 18:27 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Jari Aalto 2009-11-01 13:39:31 UTC
It's okay to send the text on stderr, when invalid option is given:

    /usr/bin/Xephyr -xyzabc
    
But not, when help is asked:

    /usr/bin/Xephyr --help | less

Please change the -help option to send text to stdout, not stderr.
See GNU cp(1), ls(1) etc. for reference.
Comment 1 smheidrich 2017-03-23 00:30:00 UTC
This appears to be a problem with the X server in general, not just Xephyr. The function for printing the help message can be found at [1] and as you can see it writes everything to stderr regardless of the situation. It is called by both the normal X server and Xephyr.

Perhaps this should be reopened as a general X server issue?

[1]: https://cgit.freedesktop.org/xorg/xserver/tree/os/utils.c?id=fdc79fe72bc0b97776df2c3a664076c60e08a87c#n516
Comment 2 GitLab Migration User 2018-12-13 18:27:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/118.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.