]> git.ipfire.org Git - thirdparty/coreutils.git/commit
expr: fix bug with unmatched \(...\)
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 26 Jan 2021 17:23:54 +0000 (09:23 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 26 Jan 2021 17:24:41 +0000 (09:24 -0800)
commit735083ba24878075235007b4417982ad5700436d
tree9b29545fd8b7a6b0c31322e64c58321f1bb4cb94
parentbb21daa125aeb4e32546309d370918ca47e612db
expr: fix bug with unmatched \(...\)

Problem reported by Qiuhao Li.
* NEWS: Mention this.
* doc/coreutils.texi (String expressions):
Document the correct behavior, which POSIX requires.
* src/expr.c (docolon): Treat unmatched \(...\) as empty.
* tests/misc/expr.pl: New test.
NEWS
doc/coreutils.texi
src/expr.c
tests/misc/expr.pl