]> projects.mako.cc - muttjump/commitdiff
is_callable: simpler solution
authorJohannes Weißl <jargon@molb.org>
Tue, 30 Nov 2010 01:48:55 +0000 (02:48 +0100)
committerJohannes Weißl <jargon@molb.org>
Tue, 30 Nov 2010 01:48:55 +0000 (02:48 +0100)
muttjump

index 8170f4e821857f7d3f6c21c6d4af2af03421d84d..74f69d13bade6bbb351d2144f5174bde1cd6c3a1 100755 (executable)
--- 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

Benjamin Mako Hill || Want to submit a patch?