(docolon): Test (re_buffer.re_nsub > 0) rather than
authorJim Meyering <jim@meyering.net>
Wed, 11 Jun 1997 20:18:15 +0000 (20:18 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 11 Jun 1997 20:18:15 +0000 (20:18 +0000)
commit8406b91aba3da0a5ce5f73ff6b7841b1b0a9cc98
tree3f9338a38f7e7301a9069deb925ef35169c413f1
parent2078f2391e20d1d1ad1d1539658a0ac46df27f05
(docolon): Test (re_buffer.re_nsub > 0) rather than
searching for `\(' to determine whether to return 0 or the empty
string.  Before it would improperly return '' if the pattern
contained a substring like this: `\\('.  From Karl Heuer.
For example, running expr c : '\\(' should print `0'.
src/expr.c