[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnulib-tool: avoid 'if ! ...' in conditional dependencies.
From: |
Bruno Haible |
Subject: |
Re: [PATCH] gnulib-tool: avoid 'if ! ...' in conditional dependencies. |
Date: |
Thu, 11 Mar 2021 18:01:02 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-203-generic; KDE/5.18.0; x86_64; ; ) |
Paul Eggert wrote:
> > This syntax is not portable in practice, as discussed in the Autoconf
> > manual[1].
>
> This shouldn't be a issue in configure scripts, since they should
> arrange to use a good shell.
I confirm: A gnulib testdir created through
./gnulib-tool --create-testdir --dir=../testdir \
--without-tests --conditional-dependencies
--avoid=libtextstyle-optional
builds fine on Solaris 10, because 'configure' did find a better shell
than /bin/sh (namely, bash) and used that.
So, remember: Shell scripts that use /bin/sh need to make more workarounds
than shell scripts that are able to respawn with a better shell.
Bruno