Shell portability issue in tests/key-id/key-id

Simon Josefsson simon at josefsson.org
Mon Sep 7 18:03:59 CEST 2009


Arfrever Frehtes Taifersar Arahesis <arfrever.fta at gmail.com> writes:

> 2009-09-03 22:46:23 Tom G. Christensen napisał(a):
>> The tests/key-id/key-id script uses 'if !' which is not understood by
>> /bin/sh and results in an error on IRIX and Solaris.
>> 
>> $ ./key-id
>> !: Not found
>
> ! is documented by POSIX:
> http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_02_01

Alas it is not portable, see:

http://www.gnu.org/software/autoconf/manual/html_node/Limitations-of-Builtins.html

I have rewritten the code, thanks for the report Tom.

/Simon





More information about the Gnutls-devel mailing list