mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 05:57:54 +00:00
testsuite: --env for csh.
This commit is contained in:
parent
9feeaefc56
commit
3ba7a4646d
|
@ -296,6 +296,8 @@ E.g. by doing:
|
|||
alias myecho echo
|
||||
env_parallel myecho ::: test
|
||||
env_parallel -S server myecho ::: test
|
||||
env_parallel --env myecho myecho ::: work
|
||||
env_parallel --env myecho -S server myecho ::: work
|
||||
|
||||
=item functions
|
||||
|
||||
|
@ -306,6 +308,8 @@ Not supported by B<csh>.
|
|||
set myvar=test
|
||||
env_parallel echo "\$myvar" ::: test
|
||||
env_parallel -S csh@server echo "\$myvar" ::: test
|
||||
env_parallel --env myvar echo '$myvar' ::: work
|
||||
env_parallel --env myvar -S server echo '$myvar' ::: work
|
||||
|
||||
|
||||
=item arrays with no special chars
|
||||
|
@ -313,6 +317,8 @@ Not supported by B<csh>.
|
|||
set myarray=(foo bar baz)
|
||||
env_parallel echo "\${myarray\[\{\}\]}" ::: 1 2 3
|
||||
env_parallel -S csh@server echo "\${myarray\[\{\}\]}" ::: 1 2 3
|
||||
env_parallel -k --env myarray echo \$'{myarray[{}]}' ::: 1 2 3
|
||||
env_parallel -k --env myarray -S server echo \$'{myarray[{}]}' ::: 1 2 3
|
||||
|
||||
=back
|
||||
|
||||
|
|
|
@ -148,22 +148,22 @@ par_csh_man() {
|
|||
alias myecho 'echo aliases'
|
||||
env_parallel myecho ::: work
|
||||
env_parallel -S server myecho ::: work
|
||||
#env_parallel --env myecho myecho ::: work
|
||||
#env_parallel --env myecho -S server myecho ::: work
|
||||
env_parallel --env myecho myecho ::: work
|
||||
env_parallel --env myecho -S server myecho ::: work
|
||||
|
||||
# Functions not supported
|
||||
|
||||
set myvar=variables
|
||||
env_parallel echo '$myvar' ::: work
|
||||
env_parallel -S server echo '$myvar' ::: work
|
||||
#env_parallel --env myvar echo '$myvar' ::: work
|
||||
#env_parallel --env myvar -S server echo '$myvar' ::: work
|
||||
env_parallel --env myvar echo '$myvar' ::: work
|
||||
env_parallel --env myvar -S server echo '$myvar' ::: work
|
||||
|
||||
set myarray=(arrays work, too)
|
||||
env_parallel -k echo \$'{myarray[{}]}' ::: 1 2 3
|
||||
env_parallel -k -S server echo \$'{myarray[{}]}' ::: 1 2 3
|
||||
#env_parallel -k --env myarray echo \$'{myarray[{}]}' ::: 1 2 3
|
||||
#env_parallel -k --env myarray -S server echo \$'{myarray[{}]}' ::: 1 2 3
|
||||
env_parallel -k --env myarray echo \$'{myarray[{}]}' ::: 1 2 3
|
||||
env_parallel -k --env myarray -S server echo \$'{myarray[{}]}' ::: 1 2 3
|
||||
|
||||
_EOF
|
||||
)
|
||||
|
|
|
@ -85,8 +85,18 @@ par_csh_man ### csh
|
|||
par_csh_man ### From man env_parallel
|
||||
par_csh_man aliases work
|
||||
par_csh_man aliases work
|
||||
par_csh_man aliases work
|
||||
par_csh_man aliases work
|
||||
par_csh_man variables work
|
||||
par_csh_man variables work
|
||||
par_csh_man variables work
|
||||
par_csh_man variables work
|
||||
par_csh_man arrays
|
||||
par_csh_man work,
|
||||
par_csh_man too
|
||||
par_csh_man arrays
|
||||
par_csh_man work,
|
||||
par_csh_man too
|
||||
par_csh_man arrays
|
||||
par_csh_man work,
|
||||
par_csh_man too
|
||||
|
|
Loading…
Reference in a new issue