mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:54:04 +08:00
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.
This commit is contained in:
parent
8e8e63144b
commit
a13e067b85
|
@ -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
|
||||
|
|
|
@ -29,4 +29,4 @@ SHLVL: 1
|
|||
SHLVL: 4
|
||||
SHLVL: 4
|
||||
Elements in DISPLAY: 1
|
||||
Elements in PATH: 4
|
||||
Elements in FOO: 4
|
||||
|
|
Loading…
Reference in New Issue
Block a user