summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-08-12 22:14:50 +0000
committerache <ache@FreeBSD.org>1996-08-12 22:14:50 +0000
commit17b8d9508aa37261f23a89a66636c84df7ab3394 (patch)
tree281b47bdd28ad7cfd57f21e93b690706c7c9ec21
parent58f9b78e5e6f13c4cd4e966b8455326a751e326f (diff)
downloadFreeBSD-src-17b8d9508aa37261f23a89a66636c84df7ab3394.zip
FreeBSD-src-17b8d9508aa37261f23a89a66636c84df7ab3394.tar.gz
Take out 0201-0207 range - those characters abused by sh
-rw-r--r--bin/sh/mksyntax.c8
-rw-r--r--bin/sh/var.c3
2 files changed, 6 insertions, 5 deletions
diff --git a/bin/sh/mksyntax.c b/bin/sh/mksyntax.c
index 9ad405a..a4948c0 100644
--- a/bin/sh/mksyntax.c
+++ b/bin/sh/mksyntax.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mksyntax.c,v 1.3 1996/08/11 22:50:59 ache Exp $
+ * $Id: mksyntax.c,v 1.4 1996/08/12 12:31:28 ache Exp $
*/
#ifndef lint
@@ -328,9 +328,9 @@ print(name)
char *macro[] = {
"#define is_digit(c)\t((is_type+SYNBASE)[c] & ISDIGIT)",
- "#define is_alpha(c)\t((c) != PEOF && isalpha((unsigned char) (c)))",
- "#define is_name(c)\t((c) != PEOF && ((c) == '_' || isalpha((unsigned char) (c))))",
- "#define is_in_name(c)\t((c) != PEOF && ((c) == '_' || isalnum((unsigned char) (c))))",
+ "#define is_alpha(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && isalpha((unsigned char) (c)))",
+ "#define is_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && ((c) == '_' || isalpha((unsigned char) (c))))",
+ "#define is_in_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && ((c) == '_' || isalnum((unsigned char) (c))))",
"#define is_special(c)\t((is_type+SYNBASE)[c] & (ISSPECL|ISDIGIT))",
NULL
};
diff --git a/bin/sh/var.c b/bin/sh/var.c
index 710edc78..e452001 100644
--- a/bin/sh/var.c
+++ b/bin/sh/var.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: var.c,v 1.3 1995/05/30 00:07:24 rgrimes Exp $
+ * $Id: var.c,v 1.4 1996/08/11 22:51:00 ache Exp $
*/
#ifndef lint
@@ -55,6 +55,7 @@ static char sccsid[] = "@(#)var.c 8.1 (Berkeley) 5/31/93";
#include "syntax.h"
#include "options.h"
#include "mail.h"
+#include "parser.h"
#include "var.h"
#include "memalloc.h"
#include "error.h"
OpenPOWER on IntegriCloud