bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] /bin/sh calls in msginit.c on Windows


From: Vincent Torri
Subject: Re: [bug-gettext] /bin/sh calls in msginit.c on Windows
Date: Tue, 30 Apr 2019 09:59:29 +0200

On Tue, Apr 30, 2019 at 9:52 AM Michele Locati <address@hidden> wrote:
>
> In gettext-tools/src/msginit.c there are a few calls to /bin/sh (for
> example: "/bin/sh /path/to/project-id").
>
> What about skipping these calls by enclosing them in a "#if ! defined
> _WIN32 || defined __CYGWIN__" clause?
>
> If so, I can submit a patch.

MSYS2 has bash. Maybe, instead of #ifdef, you can check at runtime if
/bin/sh exists or not (a system() call should be sufficient).

Vincent



reply via email to

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