From c7e24488eb4e5096bfca6ced9a685c14575c9ddc Mon Sep 17 00:00:00 2001 From: maxfl Date: Sat, 8 Sep 2012 16:28:31 +0300 Subject: [PATCH] fix output --- share/functions/contains_seq.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/functions/contains_seq.fish b/share/functions/contains_seq.fish index eca14ab4e..917415b9b 100644 --- a/share/functions/contains_seq.fish +++ b/share/functions/contains_seq.fish @@ -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]