Re: [PATCH] tests: use skip_ consistently.

Jim Meyering <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <CA+8g5KHJVqZ1Y37B0mJpytGYgp1DoCCdzYmEtQWBdf+cXwkU7w@mail.gmail.com>
On Wed, Jan 8, 2020 at 2:03 PM Karl Berry <[email protected]> wrote:
>
>     how about this instead? (feels a little like removing a double negative):
>       test "$EMACS" = t && EMACS=emacs
>
> Indeed, that looks a lot more natural, but as far as I can see, the
> problem is Automake's pervasive use of set -e.
>
> sh-4.2$ test "$FOO" = t && FOO=foo
> sh-4.2$ echo $?
> 1

Oh yeah. Then this, I guess:

  test "$EMACS" = t && EMACS=emacs || :

or "|| true" as you said.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.