mirror of
https://github.com/fish-shell/fish-shell
synced 2024-09-21 06:51:58 +00:00
parent
566a673e4f
commit
c71a2e573f
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ function __fish_seen_argument --description 'Check whether argument used'
|
|||
set -e cmd[1]
|
||||
for t in $cmd
|
||||
for s in $_flag_s
|
||||
if string match -qr "^-[A-z0-9]*$s[A-z0-9]*\$" -- $t
|
||||
if string match -qr "^-[A-z0-9]*"$s"[A-z0-9]*\$" -- $t
|
||||
return 0
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue