mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 18:42:44 +08:00
fix output
This commit is contained in:
parent
fe7d2c57e3
commit
c7e24488eb
|
@ -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 New Issue
Block a user