Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355887 - x11-misc/xclip: running xclip-copyfile with --help results in unexpected output
Summary: x11-misc/xclip: running xclip-copyfile with --help results in unexpected output
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: orbea
URL: http://sourceforge.net/tracker/?func=...
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2011-02-21 18:16 UTC by Dean Matzkov
Modified: 2023-08-29 15:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Matzkov 2011-02-21 18:16:02 UTC
Reporting the bug here since it looks like upstream is mostly-dead.


This is what happens when xclip-copyfile is ran with the --help flag:

$ /usr/bin/xclip-copyfile --help

tar: Usage\: dirname NAME\n or\: dirname OPTION\nOutput NAME with its last non-slash component and trailing slashes removed;\nif NAME contains no /'s, output `.' (meaning the current directory).\n\n --help display this help and exit\n --version output version information and exit\n\nExamples\:\n dirname /usr/bin/ Output "/usr".\n dirname stdio.h Output ".".\n\nReport dirname bugs to bug-coreutils@gnu.org\nGNU coreutils home page\: <http\://www.gnu.org/software/coreutils/>\nGeneral help using GNU software\: <http\://www.gnu.org/gethelp/>\nFor complete documentation, run\: info coreutils 'dirname invocation': Cannot chdir: No such file or directory
tar: Error is not recoverable: exiting now


The same thing applies to xclip-cutfile and xclip-pastefile.
Comment 1 Dean Matzkov 2011-02-21 18:56:27 UTC
While this isn't _technically_ a bug (as the parameters are simply passed to tar), most users would probably expect to see the applications usage, rather than being bombarded with that jarring text.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-11-26 22:41:09 UTC
Also in https://github.com/astrand/xclip/issues/16
Comment 3 orbea 2023-08-29 15:54:49 UTC
As already discussed here and in the upstream issue this is not really a bug and unless a fix for this is accepted upstream I do not think it would be wise to potentially change compatible behavior in Gentoo only. I made a comment on the upstream issue to see if they are interested at all.