summaryrefslogtreecommitdiff
path: root/bin/ksh/c_ksh.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ksh/c_ksh.c')
-rw-r--r--bin/ksh/c_ksh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/c_ksh.c b/bin/ksh/c_ksh.c
index 44458db0f57..6bfbffbef93 100644
--- a/bin/ksh/c_ksh.c
+++ b/bin/ksh/c_ksh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: c_ksh.c,v 1.24 2004/12/22 17:14:34 millert Exp $ */
+/* $OpenBSD: c_ksh.c,v 1.25 2005/02/02 07:53:01 otto Exp $ */
/*
* built-in Korn commands: c_*
@@ -1012,7 +1012,7 @@ c_let(char **wp)
bi_errorf("no arguments");
else
for (wp++; *wp; wp++)
- if (!evaluate(*wp, &val, KSH_RETURN_ERROR)) {
+ if (!evaluate(*wp, &val, KSH_RETURN_ERROR, true)) {
rv = 2; /* distinguish error from zero result */
break;
} else