summaryrefslogtreecommitdiff
path: root/tests/expr/basic
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-04-12 07:16:20 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-04-12 07:16:20 +0000
commit110970f622b097df0ef3938e0982526022baeeb1 (patch)
tree50f5332ac27e3dc479639078be09704fc2754e9c /tests/expr/basic
parent6fd9c6f98e568a360a5378d033e0c5859b20de8d (diff)
downloadcoreutils-110970f622b097df0ef3938e0982526022baeeb1.tar.xz
(docolon): Set re_syntax_options to a value that is compatible with
what POSIX requires. Also, don't let anchors match newline; this fixes an incompatibility with tradition and with POSIX. Don't warn about leading ^. POSIX says it is unspecified whether ^ is a special character, which means that implementations can either treat it as special or not, but either way a warning is not allowed (unless the regexp is otherwise invalid). Instead, anchor the expression but treat ^ as an anchor; this is the traditional behavior (e.g., Solaris 10). (eval4, eval3, eval2): Treat non-numeric args, division by zero, and the like as invalid expressions (exit status 2), not as failure of 'expr' (exit status 3). This is more consistent with how Solaris behaves.
Diffstat (limited to 'tests/expr/basic')
0 files changed, 0 insertions, 0 deletions