bin/45584: read builtin function of sh does not read standard
stefanf at FreeBSD.org
Thu Dec 8 11:20:23 PST 2005
Synopsis: read builtin function of sh does not read standard input
State-Changed-When: Thu Dec 8 19:16:48 GMT 2005
Suspend this PR as the current behaviour (while not exactly desirable) is
allowed by POSIX and isn't really a bug. Of course a nice patch would be
# 2.12 Shell Execution Environment
# Additionally, each command of a multi-command pipeline is in a subshell
# environment; as an extension, however, any or all commands in a pipeline may
# be executed in the current environment.
This means forking, executing read and setting variables in a sub-shell is
Other shells implement this extension, FreeBSD's does not.
More information about the freebsd-bugs