summaryrefslogtreecommitdiff
path: root/lb
AgeCommit message (Collapse)Author
2012-02-27Fix 4 bugs in lbLuke Shumaker
1. Check if the command exists *and* is executable 2. Quote ${command} in case it contains whitespace, which would break syntax in the test (though, because it uses Bash builtin "[[" instead of the normal "/usr/bin/[", Bash *usually* recovers from this safely. 3. Go ahead and exit with an error if we print a fatal error message, don't keep running. 4. Put "$@" in quotes; it preserves whitespace in the arguments (while still keeping separate arguments separate).
2011-05-16git-like command wrapper for all libre- commandsNicolas Reynolds