[Bug 1205366] New: Consider adding /usr/bin/command binary
http://bugzilla.opensuse.org/show_bug.cgi?id=1205366 Bug ID: 1205366 Summary: Consider adding /usr/bin/command binary Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: All OS: openSUSE Tumbleweed Status: NEW Severity: Enhancement Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: giorgio.gallo@bitnic.it QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0 Build Identifier: One of the sh scripts I used to run on fedora gave "xargs: command: No such file or directory" on opensuse (the offending line was something similar to "echo $variable | xargs command ssh-add -q"). It turns out opensuse (I think all versions?) lacks "command" as a standalone executable. According to some rando on reddit [1], command is required by POSIX... even if turns out that is not the case, it's a tiny executable and other distros have it: would it hurt to add it? [1] https://www.reddit.com/r/linuxquestions/comments/yt32r9/comment/iw23fw8 Reproducible: Always Steps to Reproduce: 1. $ echo | xargs command -v ls Actual Results: xargs: command: No such file or directory Expected Results: /usr/bin/ls -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1205366 Giorgio Gallo <giorgio.gallo@bitnic.it> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |giorgio.gallo@bitnic.it -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1205366 http://bugzilla.opensuse.org/show_bug.cgi?id=1205366#c1 Andreas Stieger <Andreas.Stieger@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Andreas.Stieger@gmx.de --- Comment #1 from Andreas Stieger <Andreas.Stieger@gmx.de> --- `command` is a shell built-in, as per the POSIX requirements. xargs does not work with shell built-ins. The wrapper shipped on some distributions simply a script calling the same. Yes it would hurt to add it: is not free to maintain, and encourages incorrect usage. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com