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

pull/2/head
Dave Yarwood 10 years ago
parent 79a3fda9a8
commit 5bebbc641c

@ -1,6 +1,6 @@
function balias --argument 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))
end
complete -c $alias -xa "(

Loading…
Cancel
Save