We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 013140c commit 40f582aCopy full SHA for 40f582a
test/t/conftest.py
@@ -499,7 +499,7 @@ def assert_complete(
499
if cwd:
500
assert_bash_exec(
501
bash,
502
- "_bash_completion_test_OLDPWD=$OLDPWD;cd %s"
+ "[[ ! ${OLDPWD+set} ]] || _bash_completion_test_OLDPWD=$OLDPWD;cd %s"
503
% shlex.quote(str(cwd)),
504
want_output=None,
505
)
@@ -567,7 +567,7 @@ def assert_complete(
567
568
569
570
- "cd -;OLDPWD=$_bash_completion_test_OLDPWD",
+ "cd -;if [[ ${_bash_completion_test_OLDPWD+set} ]]; then OLDPWD=$_bash_completion_test_OLDPWD; else unset -v OLDPWD; fi",
571
572
573
return result
0 commit comments