From 7ddba79233b1ba23efcdbb903e026b71cdbfada2 Mon Sep 17 00:00:00 2001 From: Xavier Delaruelle Date: Fri, 25 Feb 2022 11:08:17 +0100 Subject: [PATCH] ts: test fish complete def without -c when fish>=3.2 Test fish shell completion definition without -c/--complete option when fish is >=3.2 instead of >=3.0. --- testsuite/example/sh-to-mod.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/example/sh-to-mod.fish b/testsuite/example/sh-to-mod.fish index 5ed6b136..7d57bc37 100644 --- a/testsuite/example/sh-to-mod.fish +++ b/testsuite/example/sh-to-mod.fish @@ -82,8 +82,8 @@ if not set -q TESTSUITE_SHTOMOD_NOCOMP complete -c cmd -s V -l version --description 'Command version' complete --command cmd -s h -l help --description 'Command help' complete --no-files --require-parameter -c mycmd -s h --description 'Command help' - # test complete definition without -c/--complete opt arg on fish>=3 - if test (string sub -s 1 -l 1 $version) -ge 3 + # test complete definition without -c/--complete opt arg on fish>=3.2 + if test (string sub -s 1 -l 1 $version) -ge 3; and test (string sub -s 3 -l 1 $version) -ge 2 complete -f othercmd -s h -l help --description 'Command help' complete othercmd -s V -l version --description 'Command version' else