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 c55ee7f commit b6de491Copy full SHA for b6de491
test/config/bashrc
@@ -64,6 +64,12 @@ add_comp_wordbreak_char()
64
65
_comp__test_get_env()
66
{
67
+ # Note: PWD is supposed to reflect the current working directory, but the
68
+ # real current working directory of the process can be different, e.g. when
69
+ # PWD is manually altered. Therefore, we also check the result of $(pwd)
70
+ # explicitly via a new variable `_comp_test_pwd`.
71
+ local _comp_test_pwd=$(pwd)
72
+
73
(
74
# Do not output the state of test variables "_comp__test_+([0-9])_*"
75
# and internal mutable variables "_comp_*_mut_*".
0 commit comments