bug-parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't use sshlogin host with underscore in name


From: Martin Møller Skarbiniks Pedersen
Subject: Re: Can't use sshlogin host with underscore in name
Date: Fri, 21 Oct 2022 12:14:34 +0200

On Thu, 20 Oct 2022 at 15:16, Christopher Fredén <me@icetan.org> wrote:
>
> Hello,
>
> When I run `parallel -S hello_you.com echo {} ::: hej` for example.
>
> I get the following output:
>
> ```
> parallel: This should not happen. You have found a bug. Please follow
> https://www.gnu.org/software/parallel/man.html#REPORTING-BUGS


Indeed. The newest version 20220922 has the same bug.

The fix is to add an underscore to line 6906 like this:

$ diff -u parallel-20220922/src/parallel parallel
--- parallel-20220922/src/parallel 2022-09-22 19:45:38.000000000 +0200
+++ parallel 2022-10-21 12:09:43.550062334 +0200
@@ -6903,7 +6903,7 @@
     }
 
     # [server]:port
-    if($s =~ s/([-a-z0-9.]+)//i) { $host = $1; }
+    if($s =~ s/([-a-z0-9._]+)//i) { $host = $1; }
 
     # [:port]
     if($s =~ s/:(\w+)//i) { $port = $1; }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]