aboutsummaryrefslogtreecommitdiff
path: root/bin/expr/expr.y
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>2002-05-11 03:08:12 +0000
committerGarrett Wollman <wollman@FreeBSD.org>2002-05-11 03:08:12 +0000
commit94a48596a3d168f80462a7f2be9ece9dc0da09f8 (patch)
tree7761504b6ed14c8a4ca61fde37f0f5039f797691 /bin/expr/expr.y
parent4a21733e2d77033da56c9d2594a07b2082900e40 (diff)
downloadsrc-94a48596a3d168f80462a7f2be9ece9dc0da09f8.tar.gz
src-94a48596a3d168f80462a7f2be9ece9dc0da09f8.zip
EXPR_COMPAT should imply -e, since there is no way to specify it otherwise,
and -e reflects the historic behavior of FreeBSD's expr.
Notes
Notes: svn path=/head/; revision=96382
Diffstat (limited to 'bin/expr/expr.y')
-rw-r--r--bin/expr/expr.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/expr/expr.y b/bin/expr/expr.y
index 92c0e5f2df50..c73d85360deb 100644
--- a/bin/expr/expr.y
+++ b/bin/expr/expr.y
@@ -280,6 +280,7 @@ main(int argc, char *argv[])
setlocale (LC_ALL, "");
if (getenv("EXPR_COMPAT") != NULL) {
av = argv + 1;
+ eflag = 1;
} else {
while ((c = getopt(argc, argv, "e")) != -1)
switch (c) {