]> git.ipfire.org Git - network.git/commitdiff
util: Make a shortcut for "which".
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Jul 2012 12:22:42 +0000 (12:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Jul 2012 12:22:42 +0000 (12:22 +0000)
functions.util

index 3c5bca5e667477c9ec3e7d7505eb011805146790..7c230e5fce767f4e285092bebcbf4e7039cb5016 100644 (file)
@@ -267,6 +267,10 @@ function seq() {
        fi
 }
 
+function which() {
+       type -P $@
+}
+
 function beautify_time() {
        local value=${1}