@@ -176,15 +176,15 @@ def test_9_inherit_a(self, bash, functions):
176
176
def test_10_option_P_unmatching_prefix (self , bash , functions ):
177
177
output = assert_bash_exec (
178
178
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'" ,
180
180
want_output = True ,
181
181
)
182
182
assert output .strip () == ""
183
183
184
184
def test_10_option_P_incomplete_prefix (self , bash , functions ):
185
185
output = assert_bash_exec (
186
186
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'" ,
188
188
want_output = True ,
189
189
)
190
190
assert (
@@ -195,7 +195,7 @@ def test_10_option_P_incomplete_prefix(self, bash, functions):
195
195
def test_10_option_P_exact_prefix (self , bash , functions ):
196
196
output = assert_bash_exec (
197
197
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'" ,
199
199
want_output = True ,
200
200
)
201
201
assert (
@@ -206,15 +206,15 @@ def test_10_option_P_exact_prefix(self, bash, functions):
206
206
def test_10_option_P_starts_with_prefix (self , bash , functions ):
207
207
output = assert_bash_exec (
208
208
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'" ,
210
210
want_output = True ,
211
211
)
212
212
assert output .strip () == "<prefix,alpha><prefix,apple>"
213
213
214
214
def test_10_option_P_no_match (self , bash , functions ):
215
215
output = assert_bash_exec (
216
216
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'" ,
218
218
want_output = True ,
219
219
)
220
220
assert output .strip () == ""
0 commit comments