mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-26 07:57:58 +00:00
testsuite: test quoting in all known shells.
This commit is contained in:
parent
2ca7b7f201
commit
499dfe9acb
|
@ -160,14 +160,9 @@ parallel -k echo {#} ::: 1 2 ::: 1 2
|
||||||
|
|
||||||
echo '**'
|
echo '**'
|
||||||
|
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=bash parallel -0 echo
|
testquote() { printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=$1 parallel -0 echo; };
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=fish parallel -0 echo
|
export -f testquote;
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=ash parallel -0 echo
|
parallel --tag -k testquote ::: ash bash csh dash fdsh fish fizsh ksh ksh93 mksh pdksh posh rbash rc rzsh sash sh static-sh tcsh yash zsh
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=dash parallel -0 echo
|
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=sh parallel -0 echo
|
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=rc parallel -0 echo
|
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=csh parallel -0 echo
|
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=tcsh parallel -0 echo
|
|
||||||
|
|
||||||
echo '**'
|
echo '**'
|
||||||
|
|
||||||
|
|
|
@ -334,30 +334,49 @@ parallel -k echo {#} ::: 1 2 ::: 1 2
|
||||||
4
|
4
|
||||||
echo '**'
|
echo '**'
|
||||||
**
|
**
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=bash parallel -0 echo
|
testquote() { printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=$1 parallel -0 echo; }; export -f testquote; parallel --tag -k testquote ::: ash bash csh dash fdsh fish fizsh ksh ksh93 mksh pdksh posh rbash rc rzsh sash sh static-sh tcsh yash zsh
|
||||||
"#&/
|
ash "#&/
|
||||||
()*=?'
|
ash ()*=?'
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=fish parallel -0 echo
|
bash "#&/
|
||||||
"#&/
|
bash ()*=?'
|
||||||
()*=?'
|
csh "#&/
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=ash parallel -0 echo
|
csh ()*=?'
|
||||||
"#&/
|
dash "#&/
|
||||||
()*=?'
|
dash ()*=?'
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=dash parallel -0 echo
|
fdsh "#&/
|
||||||
"#&/
|
fdsh ()*=?'
|
||||||
()*=?'
|
fish "#&/
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=sh parallel -0 echo
|
fish ()*=?'
|
||||||
"#&/
|
fizsh "#&/
|
||||||
()*=?'
|
fizsh ()*=?'
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=rc parallel -0 echo
|
ksh "#&/
|
||||||
"#&/
|
ksh ()*=?'
|
||||||
()*=?'
|
ksh93 "#&/
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=csh parallel -0 echo
|
ksh93 ()*=?'
|
||||||
"#&/
|
mksh "#&/
|
||||||
()*=?'
|
mksh ()*=?'
|
||||||
printf '"#&/\n()*=?'"'" | PARALLEL_SHELL=tcsh parallel -0 echo
|
pdksh "#&/
|
||||||
"#&/
|
pdksh ()*=?'
|
||||||
()*=?'
|
posh "#&/
|
||||||
|
posh ()*=?'
|
||||||
|
rbash "#&/
|
||||||
|
rbash ()*=?'
|
||||||
|
rc "#&/
|
||||||
|
rc ()*=?'
|
||||||
|
rzsh "#&/
|
||||||
|
rzsh ()*=?'
|
||||||
|
sash "#&/
|
||||||
|
sash ()*=?'
|
||||||
|
sh "#&/
|
||||||
|
sh ()*=?'
|
||||||
|
static-sh "#&/
|
||||||
|
static-sh ()*=?'
|
||||||
|
tcsh "#&/
|
||||||
|
tcsh ()*=?'
|
||||||
|
yash "#&/
|
||||||
|
yash ()*=?'
|
||||||
|
zsh "#&/
|
||||||
|
zsh ()*=?'
|
||||||
echo '**'
|
echo '**'
|
||||||
**
|
**
|
||||||
### 1 .par file from --files expected
|
### 1 .par file from --files expected
|
||||||
|
|
|
@ -614,7 +614,7 @@ foo
|
||||||
3
|
3
|
||||||
parallel --filter-hosts -S 173.194.32.46,$SERVER1 echo ::: bar
|
parallel --filter-hosts -S 173.194.32.46,$SERVER1 echo ::: bar
|
||||||
bar
|
bar
|
||||||
parallel: Warning: Removed 173.194.32.46
|
parallel: Warning: Removed 173.194.32.46.
|
||||||
parallel --onall -S $SERVER1,$SERVER2 echo ::: foo bar
|
parallel --onall -S $SERVER1,$SERVER2 echo ::: foo bar
|
||||||
foo
|
foo
|
||||||
bar
|
bar
|
||||||
|
@ -982,7 +982,7 @@ This helps funding further development; and it won't cost you a cent.
|
||||||
If you pay 10000 EUR you should feel free to use GNU Parallel without citing.
|
If you pay 10000 EUR you should feel free to use GNU Parallel without citing.
|
||||||
|
|
||||||
parallel --version
|
parallel --version
|
||||||
GNU parallel 20150522
|
GNU parallel VERSION
|
||||||
Copyright (C) 2007,2008,2009,2010,2011,2012,2013,2014,2015 Ole Tange
|
Copyright (C) 2007,2008,2009,2010,2011,2012,2013,2014,2015 Ole Tange
|
||||||
and Free Software Foundation, Inc.
|
and Free Software Foundation, Inc.
|
||||||
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
||||||
|
@ -993,9 +993,9 @@ Web site: http://www.gnu.org/software/parallel
|
||||||
|
|
||||||
When using programs that use GNU Parallel to process data for publication
|
When using programs that use GNU Parallel to process data for publication
|
||||||
please cite as described in 'parallel --bibtex'.
|
please cite as described in 'parallel --bibtex'.
|
||||||
parallel --minversion 20130722 && echo Your version is at least 20130722.
|
parallel --minversion VERSION && echo Your version is at least VERSION.
|
||||||
20150522
|
VERSION
|
||||||
Your version is at least 20130722.
|
Your version is at least VERSION.
|
||||||
parallel --bibtex
|
parallel --bibtex
|
||||||
Academic tradition requires you to cite works you base your article on.
|
Academic tradition requires you to cite works you base your article on.
|
||||||
When using programs that use GNU Parallel to process data for publication
|
When using programs that use GNU Parallel to process data for publication
|
||||||
|
|
Loading…
Reference in a new issue