From 14724401ff82eeb569df8b9b291b4670e80c35d8 Mon Sep 17 00:00:00 2001 From: David Adam Date: Wed, 8 Oct 2014 09:51:49 +0800 Subject: env.cpp: correctly check variable_can_be_array Closes #1746. --- tests/test3.in | 4 ++++ tests/test3.out | 2 ++ 2 files changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/test3.in b/tests/test3.in index b83b69c0..816e94ec 100644 --- a/tests/test3.in +++ b/tests/test3.in @@ -244,4 +244,8 @@ env SHLVL=3foo ../fish -c 'echo SHLVL: $SHLVL' env SHLVL="3 " ../fish -c 'echo SHLVL: $SHLVL' 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)' + true diff --git a/tests/test3.out b/tests/test3.out index c6a21905..31ad6cb2 100644 --- a/tests/test3.out +++ b/tests/test3.out @@ -28,3 +28,5 @@ SHLVL: 1 SHLVL: 1 SHLVL: 4 SHLVL: 4 +Elements in DISPLAY: 1 +Elements in PATH: 4 -- cgit v1.2.3