parallel: Give multiple --sshlogin by separating them with \n.

This commit is contained in:
Ole Tange 2015-04-22 18:26:41 +02:00
parent 1b54fefc10
commit bbedf716c1
2 changed files with 3 additions and 3 deletions

View file

@ -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));

View file

@ -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>.