mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 14:07:55 +00:00
parallel: Give multiple --sshlogin by separating them with \n.
This commit is contained in:
parent
1b54fefc10
commit
bbedf716c1
|
@ -2472,7 +2472,7 @@ sub parse_sshlogin {
|
||||||
if(not @Global::sshlogin) { @Global::sshlogin = (":"); }
|
if(not @Global::sshlogin) { @Global::sshlogin = (":"); }
|
||||||
for my $sshlogin (@Global::sshlogin) {
|
for my $sshlogin (@Global::sshlogin) {
|
||||||
# Split up -S sshlogin,sshlogin
|
# Split up -S sshlogin,sshlogin
|
||||||
for my $s (split /,/, $sshlogin) {
|
for my $s (split /,|\n/, $sshlogin) {
|
||||||
if ($s eq ".." or $s eq "-") {
|
if ($s eq ".." or $s eq "-") {
|
||||||
# This may add to @Global::sshlogin - possibly bug
|
# This may add to @Global::sshlogin - possibly bug
|
||||||
read_sshloginfile(expand_slf_shorthand($s));
|
read_sshloginfile(expand_slf_shorthand($s));
|
||||||
|
|
|
@ -1674,8 +1674,8 @@ The sshlogin '..' is special, it read sshlogins from ~/.parallel/sshloginfile
|
||||||
The sshlogin '-' is special, too, it read sshlogins from stdin
|
The sshlogin '-' is special, too, it read sshlogins from stdin
|
||||||
(standard input).
|
(standard input).
|
||||||
|
|
||||||
To specify more sshlogins separate the sshlogins by comma or repeat
|
To specify more sshlogins separate the sshlogins by comma, newline (in
|
||||||
the options multiple times.
|
the same string), or repeat the options multiple times.
|
||||||
|
|
||||||
For examples: see B<--sshloginfile>.
|
For examples: see B<--sshloginfile>.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue