Skip to content
Snippets Groups Projects

`command -v` portability

Merged Eli Schwartz requested to merge eschwartz/xdg-utils:command-v-portability into master
5 unresolved threads
2 files
+ 4
4
Compare changes
  • Side-by-side
  • Inline
Files
2
  • 3a942c88
    remove bashisms from POSIX sh script · 3a942c88
    Eli Schwartz authored
    The &> redirection operator is a bash-specific shorthand for the POSIX
    combined redirection operators >/dev/null 2>&1 and must not be used in
    portable scripts under any circumstances.
+ 1
1
@@ -138,7 +138,7 @@ su_generic()
su_xfce()
{
if which gnomesu &>/dev/null ; then
if which gnomesu >/dev/null 2>&1 ; then
su_gnome
else
su_generic
Loading