summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-12-22 18:52:38 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-12-22 18:52:38 +0000
commit417f256310e4ca6f040929ed5a3a5932198f83d6 (patch)
treebcfcc0067186cad3b471c4ecda460baa4e678294 /bin
parentd26ff498a561775b6ff5b455c61f11e4cd8bd873 (diff)
Fix previous commit here, I add the case statement to the wrong switch.
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/eval.c b/bin/ksh/eval.c
index 64529a44bee..7fd78bd586a 100644
--- a/bin/ksh/eval.c
+++ b/bin/ksh/eval.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eval.c,v 1.23 2004/12/22 18:39:31 millert Exp $ */
+/* $OpenBSD: eval.c,v 1.24 2004/12/22 18:52:37 millert Exp $ */
/*
* Expansion - quoting, separation, substitution, globbing
@@ -766,7 +766,6 @@ varsub(Expand *xp, char *sp, char *word,
case '=': /* can't assign to a vector */
case '%': /* can't trim a vector (yet) */
case '#':
- case '?':
return -1;
}
if (e->loc->argc == 0) {
@@ -787,6 +786,7 @@ varsub(Expand *xp, char *sp, char *word,
case '=': /* can't assign to a vector */
case '%': /* can't trim a vector (yet) */
case '#':
+ case '?':
return -1;
}
XPinit(wv, 32);