mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
fix output
This commit is contained in:
parent
fe7d2c57e3
commit
c7e24488eb
1 changed files with 4 additions and 4 deletions
|
@ -19,13 +19,13 @@ function contains_seq --description 'Return true if array contains a sequence'
|
|||
set -l i 1
|
||||
for s in $string
|
||||
if set -q printnext[2]
|
||||
echo $s
|
||||
#echo $s
|
||||
return 0
|
||||
end
|
||||
echo a $nomatch
|
||||
#echo a $nomatch
|
||||
if test "$s" = "$pattern[$i]"
|
||||
echo b $nomatch
|
||||
echo c $nomatch[1]
|
||||
#echo b $nomatch
|
||||
#echo c $nomatch[1]
|
||||
set -e nomatch[1]
|
||||
set i (expr $i + 1)
|
||||
if not set -q pattern[$i]
|
||||
|
|
Loading…
Reference in a new issue