bug-hello
[Top][All Lists]
Advanced

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

fix greeting-2 test


From: Bruno Haible
Subject: fix greeting-2 test
Date: Wed, 14 Dec 2016 19:36:59 +0100
User-agent: KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; )

Hi,

The greeting-2 test uses the "set - ARGS" idiom which once was thought to be
portable. It no longer is:

https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Builtins.html
says
"Avoid ‘set -’, e.g., ‘set - $my_list’. Posix no longer requires support for
 this command, and in traditional shells ‘set - $my_list’ resets the -v and -x
 options, which makes scripts harder to debug."

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html
says
"If the first argument is '-', the results are unspecified."

Find attached a patch (tested).

Attachment: 0001-Make-the-greeting-2-test-POSIX-compliant-and-traceab.patch
Description: Text Data


reply via email to

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