[Top][All Lists]

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

Re: syscmd broken on FreeBSD and AIX

From: Bruno Haible
Subject: Re: syscmd broken on FreeBSD and AIX
Date: Sat, 14 Jan 2023 21:37:03 +0100

Eric Blake wrote:
> Instead of using -- to force sh to realize the command being passed is
> intended to be a script to run (even if it starts with - or +), it is
> also possible to prepend a space.

Indeed, that it simpler than testing whether the command starts with - or +.

> I'm thinking of trying the alternative of not injecting "--" after
> all, but instead munging the given argument to supply a leading space.
> But that we need a new version of your patch.  Do you want to try and
> rework it along those lines, or should I make time for that?

Find attached a proposed patch. Tested on FreeBSD 13.1 and AIX 7.2; with
it, all m4 tests pass.


Attachment: 0001-syscmd-Make-it-work-again-for-most-commands-on-FreeB.patch
Description: Text Data

reply via email to

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