parallel
[Top][All Lists]
Advanced

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

Re: sh: -c: option requires an argument on Cygwin


From: Geoffrey Cleaves
Subject: Re: sh: -c: option requires an argument on Cygwin
Date: Fri, 6 Mar 2020 16:26:06 +0200

Installing a 2014 version of parallel fixed the issue. As time permits I will try newer versions to see where it breaks on Cygwin. Thanks for your help Diomidis. Are you running a Windows PC from 2014?!?!? ;)

Geoff

On Thu, Mar 5, 2020 at 9:31 PM Diomidis Spinellis <dds@aueb.gr> wrote:
Ah, good point, uname!  I obtained the version I reported from the
cygwin.exe file properties.  The version I get through uname is

$ uname -a
CYGWIN_NT-10.0 hostname 3.0.6(0.338/5/3) 2019-04-06 16:18 x86_64 Cygwin


On 05-Mar-20 19:58, Geoffrey Cleaves wrote:
> Maybe the problem is that I'm using a *newer* version?
>
> $ uname
> CYGWIN_NT-10.0
>
> I'll try your version and report back.
>
> On Thu, Mar 5, 2020 at 7:47 PM Diomidis Spinellis <dds@aueb.gr
> <mailto:dds@aueb.gr>> wrote:
>
>     I cannot replicate the problem in Cygwin 0.8.1
>
>     $ parallel -k echo ::: A B C
>     parallel: Warning: $SHELL not set. Using /bin/sh.
>     A
>     B
>     C
>     $ SHELL=/bin/bash parallel -k echo ::: A B C
>     A
>     B
>     C
>     $ SHELL=/bin/sh parallel -k echo ::: A B C
>     A
>     B
>     C
>
>     Could you be using a non-standard shell or an older version of Cygwin?
>
>     --
>     Diomidis Spinellis
>     Free edX MOOC on Unix Tools: Data, Software, and Production Engineering
>     https://www.spinellis.gr/unix?pgo20200305
>
>     On 05-Mar-20 18:43, Geoffrey Cleaves wrote:
>      > Hello, I have been an avid user of parallel on Mac OS and Linux
>     over the
>      > last 5 years. But I now find myself using Windows with the following
>      > problem when trying to run parallel in Cygwin.
>      >
>      > $ parallel -k echo ::: A B C
>      > sh: -c: option requires an argument
>      > sh: -c: option requires an argument
>      > ... never stops
>      >
>      > $ parallel --version , however, works just fine.
>      >
>      > Any tips on how to fix this?
>

reply via email to

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