Replace uses of expr with math/string

This commit is contained in:
Fabian Homborg
2016-02-03 23:23:59 +01:00
parent 962f9914c6
commit 158ea98189
6 changed files with 9 additions and 18 deletions

View File

@@ -15,7 +15,7 @@ function __fish_complete_subcommand -d "Complete subcommand" --no-scope-shadowi
for i in $cmd
if test $skip_next -gt 0
set skip_next (expr $skip_next - 1)
set skip_next (math $skip_next - 1)
continue
end
@@ -24,7 +24,7 @@ function __fish_complete_subcommand -d "Complete subcommand" --no-scope-shadowi
else
if contains -- $i $argv
set skip_next (expr $skip_next + 1)
set skip_next (math $skip_next + 1)
continue
end