mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
env_parallel.csh: Testing of --env _ for csh works.
This commit is contained in:
parent
bec3d7924b
commit
9feeaefc56
|
@ -323,6 +323,40 @@ _EOF
|
||||||
ssh -tt tcsh@lo "$myscript"
|
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:
|
# Test env_parallel:
|
||||||
# + for each shell
|
# + for each shell
|
||||||
# + remote, locally
|
# + remote, locally
|
||||||
|
|
|
@ -93,6 +93,24 @@ par_csh_man too
|
||||||
par_csh_man arrays
|
par_csh_man arrays
|
||||||
par_csh_man work,
|
par_csh_man work,
|
||||||
par_csh_man too
|
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 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
|
par_fish_funky 3 arg alias_works
|
||||||
|
|
Loading…
Reference in a new issue