From: Johannes Weißl Date: Tue, 30 Nov 2010 01:48:55 +0000 (+0100) Subject: is_callable: simpler solution X-Git-Url: https://projects.mako.cc/source/muttjump/commitdiff_plain/1443c5655868a8f6fae18bb6e97498ca61f3ee1c?ds=sidebyside;hp=62fc28127af60bc3c76d210b99bc927e131ba1f6 is_callable: simpler solution --- diff --git a/muttjump b/muttjump index 8170f4e..74f69d1 100755 --- a/muttjump +++ b/muttjump @@ -59,8 +59,7 @@ function quote () { } function is_callable () { - read cmd args <<<$1 - type -p $cmd >/dev/null + type -p $1 >/dev/null } # Check command-line arguments and STDIN