use older expr syntax for backwards compatibility with the expr that comes with OSX

This commit is contained in:
Dave Yarwood 2015-02-28 14:10:31 -05:00
parent 79a3fda9a8
commit 5bebbc641c

View File

@ -1,6 +1,6 @@
function balias --argument alias command function balias --argument alias command
eval 'alias $alias $command' eval 'alias $alias $command'
if expr match $command '^sudo '>/dev/null if expr $command : '^sudo '>/dev/null
set command (expr substr + $command 6 (expr length $command)) set command (expr substr + $command 6 (expr length $command))
end end
complete -c $alias -xa "( complete -c $alias -xa "(