Fix for Zsh.

This commit is contained in:
Akim Demaille 2002-04-22 11:15:35 +00:00
parent 3e6f1ca1e0
commit 63b1ec154d
2 changed files with 10 additions and 5 deletions

View File

@ -2,6 +2,10 @@
Version 2.53a.
2002-04-22 Akim Demaille <akim@epita.fr>
* tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
2002-04-22 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi (Pretty Help Strings): Remove a spurious

View File

@ -28,6 +28,12 @@ m4_pattern_allow([^AS_EXIT$])
AT_SETUP([LINENO])
# We cannot unset LINENO with Zsh, yet this test case relies on
# unsetting LINENO to compare its result when (i) LINENO is supported
# and when (ii) it is not.
# So just skip if the shell is ZSH.
AT_CHECK([test -n "${ZSH_VERSION+set}" && exit 77])
# AT_DATA_LINENO(FILENAME,
# UNSET-LINENO = true | false, COUNTER, COUNTER-RE)
# ----------------------------------------------------------------
@ -45,11 +51,6 @@ m4_define([AT_DATA_LINENO],
[AT_DATA([$1],
[[AS@&t@_INIT
if $2; then
# We cannot unset LINENO with Zsh, yet this test case relies on
# unsetting LINENO to compare its result when (i) LINENO is supported
# and when (ii) it is not.
# So just skip is the shell is ZSH.
test -n "${ZSH_VERSION+set}" && AS@&t@_ERROR([cannot unset LINENO], 77)
AS@&t@_UNSET([LINENO])
fi
_AS@&t@_PREPARE