diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-02-02 07:53:02 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-02-02 07:53:02 +0000 |
commit | 54ee15db00e783ca1052eedeb6b38b4484b6011f (patch) | |
tree | bf4d8074308cb316ade912a58910777671d1b708 /bin/ksh/c_ksh.c | |
parent | 8611e25a7ef3067db40e9ec505220aa05c19a973 (diff) |
Introduce POSIX hex and octal (0x... and 0...) constants in arithmetic
expressions. Work by Matthias Kilian, based on an old diff by myself.
Note: MAKEDEV should be updated. Tested by many, thanks.
ok millert@ deraadt@
Diffstat (limited to 'bin/ksh/c_ksh.c')
-rw-r--r-- | bin/ksh/c_ksh.c | 4 |
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 |