diff --git a/testsuite/tests-to-run/parallel-local-ssh7.sh b/testsuite/tests-to-run/parallel-local-ssh7.sh index f69582b8..5d6e3504 100755 --- a/testsuite/tests-to-run/parallel-local-ssh7.sh +++ b/testsuite/tests-to-run/parallel-local-ssh7.sh @@ -323,6 +323,40 @@ _EOF ssh -tt tcsh@lo "$myscript" } +par_csh_underscore() { + echo '### csh' + myscript=$(cat <<'_EOF' + echo "### Testing of --env _" + +# . `which env_parallel.tcsh`; + env_parallel --record-env; + alias myecho "echo "\$"myvar "\$'myarray'" aliases"; + set myvar="variables"; + set myarray=(and arrays in); + env_parallel myecho ::: work; + env_parallel -S server myecho ::: work; + env_parallel --env myvar,myarray,myecho myecho ::: work; + env_parallel --env myvar,myarray,myecho -S server myecho ::: work; + env_parallel --env _ myecho ::: work; + env_parallel --env _ -S server myecho ::: work; + + echo myvar >> ~/.parallel/ignored_vars; + env_parallel --env _ myecho ::: work; + env_parallel --env _ -S server myecho ::: work; + alias myecho "echo "\$'myarray'" aliases"; + echo myarray >> ~/.parallel/ignored_vars; + env_parallel --env _ myecho ::: work; + env_parallel --env _ -S server myecho ::: work; + echo myecho >> ~/.parallel/ignored_vars; + env_parallel --env _ myecho ::: work; + echo "OK ^^^^^^^^^^^^^^^^^ if no myecho" >/dev/stderr; + env_parallel --env _ -S server myecho ::: work; + echo "OK ^^^^^^^^^^^^^^^^^ if no myecho" >/dev/stderr; +_EOF + ) + ssh -tt csh@lo "$myscript" +} + # Test env_parallel: # + for each shell # + remote, locally diff --git a/testsuite/wanted-results/parallel-local-ssh7 b/testsuite/wanted-results/parallel-local-ssh7 index eb9aa1ad..262ddad2 100644 --- a/testsuite/wanted-results/parallel-local-ssh7 +++ b/testsuite/wanted-results/parallel-local-ssh7 @@ -93,6 +93,24 @@ par_csh_man too par_csh_man arrays par_csh_man work, par_csh_man too +par_csh_underscore ### csh +par_csh_underscore ### Testing of --env _ +par_csh_underscore #: Command not found. +par_csh_underscore variables and arrays in aliases work +par_csh_underscore variables and arrays in aliases work +par_csh_underscore variables and arrays in aliases work +par_csh_underscore variables and arrays in aliases work +par_csh_underscore variables and arrays in aliases work +par_csh_underscore variables and arrays in aliases work +par_csh_underscore variables and arrays in aliases work +par_csh_underscore variables and arrays in aliases work +par_csh_underscore and arrays in aliases work +par_csh_underscore and arrays in aliases work +par_csh_underscore and arrays in aliases work +par_csh_underscore OK ^^^^^^^^^^^^^^^^^ if no myecho +par_csh_underscore and arrays in aliases work +par_csh_underscore OK ^^^^^^^^^^^^^^^^^ if no myecho +par_csh_underscore Connection to lo closed. par_fish_funky env_parallel: Warning: ASCII value 1 in variables is not supported par_fish_funky env_parallel: Warning: ASCII value 1 in variables is not supported par_fish_funky 3 arg alias_works