[BUILTIN] Fix backslash handling in read(1)

The new read(1) implementation incorrectly assumes that ifsbreakup
ignores characters escaped by CTLESC.  As such it fails to handle
backslashes except for escaping newlines.

This patch makes it use recordregion for every part that isn't
escaped by a backslash.

Reported-by: Jilles Tjoelker <jilles@stack.nl>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
5 files changed
tree: 3f0360309fb374bca544a4527f4f63897a8a0418
  1. src/
  2. ChangeLog
  3. ChangeLog.O
  4. configure.ac
  5. COPYING
  6. Makefile.am