@@ -176,15 +176,15 @@ def test_9_inherit_a(self, bash, functions):
176176 def test_10_option_P_unmatching_prefix (self , bash , functions ):
177177 output = assert_bash_exec (
178178 bash ,
179- "cur= 'x' _comp__test_compgen -P 'prefix,' -- -W 'alpha apple beta lemon'" ,
179+ "_comp__test_compgen -c 'x' -P 'prefix,' -- -W 'alpha apple beta lemon'" ,
180180 want_output = True ,
181181 )
182182 assert output .strip () == ""
183183
184184 def test_10_option_P_incomplete_prefix (self , bash , functions ):
185185 output = assert_bash_exec (
186186 bash ,
187- "cur= 'pre' _comp__test_compgen -P 'prefix,' -- -W 'alpha apple beta lemon'" ,
187+ "_comp__test_compgen -c 'pre' -P 'prefix,' -- -W 'alpha apple beta lemon'" ,
188188 want_output = True ,
189189 )
190190 assert (
@@ -195,7 +195,7 @@ def test_10_option_P_incomplete_prefix(self, bash, functions):
195195 def test_10_option_P_exact_prefix (self , bash , functions ):
196196 output = assert_bash_exec (
197197 bash ,
198- "cur= 'prefix,' _comp__test_compgen -P 'prefix,' -- -W 'alpha apple beta lemon'" ,
198+ "_comp__test_compgen -c 'prefix,' -P 'prefix,' -- -W 'alpha apple beta lemon'" ,
199199 want_output = True ,
200200 )
201201 assert (
@@ -206,15 +206,15 @@ def test_10_option_P_exact_prefix(self, bash, functions):
206206 def test_10_option_P_starts_with_prefix (self , bash , functions ):
207207 output = assert_bash_exec (
208208 bash ,
209- "cur= 'prefix,a' _comp__test_compgen -P 'prefix,' -- -W 'alpha apple beta lemon'" ,
209+ "_comp__test_compgen -c 'prefix,a' -P 'prefix,' -- -W 'alpha apple beta lemon'" ,
210210 want_output = True ,
211211 )
212212 assert output .strip () == "<prefix,alpha><prefix,apple>"
213213
214214 def test_10_option_P_no_match (self , bash , functions ):
215215 output = assert_bash_exec (
216216 bash ,
217- "cur= 'prefix,x' _comp__test_compgen -P 'prefix,' -- -W 'alpha apple beta lemon'" ,
217+ "_comp__test_compgen -c 'prefix,x' -P 'prefix,' -- -W 'alpha apple beta lemon'" ,
218218 want_output = True ,
219219 )
220220 assert output .strip () == ""
0 commit comments