mirror of
https://github.com/envmodules/modules.git
synced 2026-06-07 00:25:05 +08:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user