-/* $OpenBSD: interpreter.c,v 1.29 2021/05/07 08:29:30 lum Exp $ */
+/* $OpenBSD: interpreter.c,v 1.30 2021/05/08 09:27:35 lum Exp $ */
/*
* This file is in the public domain.
*
*/
#include <sys/queue.h>
+#include <ctype.h>
#include <limits.h>
#include <regex.h>
#include <signal.h>
} else if (*p != ' ' && *p != '\t') {
if (begp == NULL) {
begp = p;
- if (*begp == '"')
+ if (*begp == '"' || isdigit(*begp))
return(dobeep_num("First char of "\
"expression error line:", lnm));
}