diff options
author | 2004-12-18 21:04:52 +0000 | |
---|---|---|
committer | 2004-12-18 21:04:52 +0000 | |
commit | 94e42df60ff585946d2abedc44f34ced527b7f07 (patch) | |
tree | 05259071753717217dadc77d6a4bded582f7bed8 /bin/ksh/expr.c | |
parent | Use _POSIX_VDISABLE directly instead of assigning it to a variable. (diff) | |
download | wireguard-openbsd-94e42df60ff585946d2abedc44f34ced527b7f07.tar.xz wireguard-openbsd-94e42df60ff585946d2abedc44f34ced527b7f07.zip |
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.c | 7 |
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; |