diff options
author | 2012-09-14 14:18:50 +0000 | |
---|---|---|
committer | 2012-09-14 14:18:50 +0000 | |
commit | 08c6f257b7d91448ccc51017fdcf8c7c98705d23 (patch) | |
tree | ca5009c912d65652165fd4c423144a78d13acf54 | |
parent | ! is a meta character, this lets (diff) | |
download | wireguard-openbsd-08c6f257b7d91448ccc51017fdcf8c7c98705d23.tar.xz wireguard-openbsd-08c6f257b7d91448ccc51017fdcf8c7c98705d23.zip |
more accurate fix: don't mark '!' as a meta character, recognize "!" as
a shell reserved word.
okay millert@
-rw-r--r-- | usr.bin/make/engine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/engine.c b/usr.bin/make/engine.c index cc6cb79ee59..99d8924f91e 100644 --- a/usr.bin/make/engine.c +++ b/usr.bin/make/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.31 2012/09/14 08:46:39 espie Exp $ */ +/* $OpenBSD: engine.c,v 1.32 2012/09/14 14:18:50 espie Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. * Copyright (c) 1988, 1989 by Adam de Boor @@ -517,7 +517,7 @@ setup_meta(void) { char *p; - for (p = "#!=|^(){};&<>*?[]:$`\\\n"; *p != '\0'; p++) + for (p = "#=|^(){};&<>*?[]:$`\\\n"; *p != '\0'; p++) meta[(unsigned char) *p] = 1; /* The null character serves as a sentinel in the string. */ meta[0] = 1; @@ -527,7 +527,7 @@ static char ** recheck_command_for_shell(char **av) { char *runsh[] = { - "alias", "cd", "eval", "exit", "read", "set", "ulimit", + "!", "alias", "cd", "eval", "exit", "read", "set", "ulimit", "unalias", "unset", "wait", "umask", NULL }; |