diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2012-09-14 08:46:40 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2012-09-14 08:46:40 +0000 |
commit | 64da2d92ad38caee899d35cd2ec160517dae069d (patch) | |
tree | d47e438bb4a373b0f554fa39c055eed67a7755c8 | |
parent | fef9fc6fcfe752e2145bdbb4ac0109b2eb311428 (diff) |
! is a meta character, this lets
test:
! pgrep process
work, without trying to look for a '!' command
(remember that not running a shell for each command is an optimization ?)
bug fix prompted by eric@'s remark, okay millert@
-rw-r--r-- | usr.bin/make/engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/engine.c b/usr.bin/make/engine.c index 5b147bed0e8..cc6cb79ee59 100644 --- a/usr.bin/make/engine.c +++ b/usr.bin/make/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.30 2012/08/25 08:12:56 espie Exp $ */ +/* $OpenBSD: engine.c,v 1.31 2012/09/14 08:46:39 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; |