Note new behaviour: set var [expr] no longer works.

This commit is contained in:
David F. Skoll
2008-04-16 13:34:38 -04:00
parent 7356a511e0
commit 2848203d75
3 changed files with 12 additions and 4 deletions

View File

@@ -45,6 +45,6 @@ if test "$GCC" = yes; then
fi
AC_CHECK_FUNCS(setenv unsetenv glob)
VERSION=03.01.05
VERSION=03.01.06
AC_SUBST(VERSION)
AC_OUTPUT(src/Makefile www/Makefile src/version.h)

View File

@@ -2644,8 +2644,16 @@ exceptions:
.TP
o
If \fBRemind\fR is expecting an expression, as in the \fBSET\fR command,
or the \fBIF\fR command, then no expression pasting takes place. The
expression is simply evaluated as if the square brackets were not there.
or the \fBIF\fR command, you should \fBnot\fR include square brackets.
FOr example, use:
.PP
.nf
SET a 4+5
.fi
and not:
.nf
SET a [4+5]
.fi
.TP
o
You cannot use expression pasting for the first token on a line.

View File

@@ -223,7 +223,7 @@ int DoSet (Parser *p)
r = ParseIdentifier(p, &buf);
if (r) return r;
/* Allow option equals-sign: SET var = value */
/* Allow optional equals-sign: SET var = value */
if (ParseNonSpaceChar(p, &r, 1) == '=') {
ParseNonSpaceChar(p, &r, 0);
}