diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2016-02-03 23:23:59 +0100 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-02-03 23:23:59 +0100 |
commit | 158ea98189f6c5c410ea8b58f466a5ef6a8f1a33 (patch) | |
tree | 706beb417907de7154c2d6783aaed3519c6d10a0 /share/completions | |
parent | 962f9914c61f6ab0e744009cafa56d072bbfc8a6 (diff) |
Replace uses of expr with math/string
Diffstat (limited to 'share/completions')
-rw-r--r-- | share/completions/cower.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/cower.fish b/share/completions/cower.fish index 743b4445..83918d9c 100644 --- a/share/completions/cower.fish +++ b/share/completions/cower.fish @@ -20,4 +20,4 @@ complete -c cower -f -s v -l 'verbose' -d 'Output more' # Complete with AUR packages: # If the search string is too short, cower prints an annoying message to stderr - ignore that -complete -c cower -f -n 'not expr -- (commandline --current-token) : "^\-.*" > /dev/null' -a '(cower --format="%n\t%d\n" --search (commandline --current-token) ^/dev/null)' +complete -c cower -f -n 'not string match -q -- "-*" (commandline --current-token)' -a '(cower --format="%n\t%d\n" --search (commandline --current-token) ^/dev/null)' |