diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test3.in | 6 | ||||
-rw-r--r-- | tests/test3.out | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/test3.in b/tests/test3.in index 4dec9a83..b162939d 100644 --- a/tests/test3.in +++ b/tests/test3.in @@ -248,7 +248,9 @@ env SHLVL=" 3" ../fish -c 'echo SHLVL: $SHLVL' env DISPLAY="localhost:0.0" ../fish -c 'echo Elements in DISPLAY: (count $DISPLAY)' # 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)' +# Exported arrays should use record separator, with a few exceptions. So we can use an arbitrary variable for this. +env FOO=one\x1etwo\x1ethree\x1efour ../fish -c 'echo Elements in FOO: (count $FOO)' +# some must use colon separators! +set -lx MANPATH man1 man2 man3 ; env | grep MANPATH true diff --git a/tests/test3.out b/tests/test3.out index 5d3a48b2..d7dd2c43 100644 --- a/tests/test3.out +++ b/tests/test3.out @@ -30,3 +30,4 @@ SHLVL: 4 SHLVL: 4 Elements in DISPLAY: 1 Elements in FOO: 4 +MANPATH=man1:man2:man3 |