summaryrefslogtreecommitdiff
path: root/bin/ksh/expr.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-12-18 21:04:53 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-12-18 21:04:53 +0000
commitb228348292c4361c750ae05a5597a15e71c5c5da (patch)
treee7527881cd44cefdbbcd11ec8332b581e2e4f8ec /bin/ksh/expr.c
parent55e483bc0655baec919e26c2dfcdda314a467a32 (diff)
Get rid of #ifdef KSH since we don't care about building a V7 style sh and
the #ifdef KSH code is required to make a POSIX sh. From Matthias Kilian
Diffstat (limited to 'bin/ksh/expr.c')
-rw-r--r--bin/ksh/expr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/ksh/expr.c b/bin/ksh/expr.c
index e04abfd24d0..90f163d2952 100644
--- a/bin/ksh/expr.c
+++ b/bin/ksh/expr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: expr.c,v 1.10 2004/12/18 20:55:52 millert Exp $ */
+/* $OpenBSD: expr.c,v 1.11 2004/12/18 21:04:52 millert Exp $ */
/*
* Korn expression evaluation
@@ -481,16 +481,13 @@ token(es)
if (len == 0)
evalerr(es, ET_STR, "missing ]");
cp += len;
- }
-#ifdef KSH
- else if (c == '(' /*)*/ ) {
+ } else if (c == '(' /*)*/ ) {
/* todo: add math functions (all take single argument):
* abs acos asin atan cos cosh exp int log sin sinh sqrt
* tan tanh
*/
;
}
-#endif /* KSH */
if (es->noassign) {
es->val = tempvar();
es->val->flag |= EXPRLVALUE;