diff options
author | Kevin Ballard <kevin@sb.org> | 2014-10-07 19:37:13 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-10-07 19:37:13 -0700 |
commit | a13e067b853a937775ffa1cee272d1ca766a4592 (patch) | |
tree | 0d0f4692d5b6888eb8f01f6bbb9dc8c70ff06a0a /tests/test3.in | |
parent | 8e8e63144bacf4c757bfba524811f8a579b3651b (diff) |
Fix test breakage from 14724401f
We can't use $PATHS to test the :-splitting because the global config
file adds extra paths based on /etc/paths and /etc/paths.d.
Ideally fish would have a way to suppress behavior like that, but for
the time being it doesn't.
Diffstat (limited to 'tests/test3.in')
-rw-r--r-- | tests/test3.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test3.in b/tests/test3.in index 816e94ec..4dec9a83 100644 --- a/tests/test3.in +++ b/tests/test3.in @@ -246,6 +246,9 @@ env SHLVL=" 3" ../fish -c 'echo SHLVL: $SHLVL' # Test transformation of inherited variables env DISPLAY="localhost:0.0" ../fish -c 'echo Elements in DISPLAY: (count $DISPLAY)' -env PATH="/bin:/sbin:/usr/bin:/usr/sbin" ../fish -c 'echo Elements in PATH: (count $PATH)' +# We can't use PATH for this because the global configuration will modify PATH +# based on /etc/paths and /etc/paths.d. +# At the moment, most variables split on :. So we can use an arbitrary variable for this. +env FOO="one:two:three:four" ../fish -c 'echo Elements in FOO: (count $FOO)' true |