You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Would teaching xclip-copyfile about -h/--help and then printing an error for any other unknown command-line be an acceptable solution? Unfortunately tar(1) doesn't support -- and --verbatim-files-from would break support with older tar releases.
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.
Reported by: bapabooiee
Original Ticket: xclip/bugs/5
The text was updated successfully, but these errors were encountered: