fix output

This commit is contained in:
maxfl 2012-09-08 16:28:31 +03:00 committed by ridiculousfish
parent fe7d2c57e3
commit c7e24488eb

View file

@ -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]