bin/45584: read builtin function of sh does not read standard input

Stefan Farfeleder 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-From-To: analyzed->suspended
State-Changed-By: stefanf
State-Changed-When: Thu Dec 8 19:16:48 GMT 2005
State-Changed-Why: 
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
gladly accepted.

# 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
allowed.

Other shells implement this extension, FreeBSD's does not.

http://www.freebsd.org/cgi/query-pr.cgi?pr=45584


More information about the freebsd-bugs mailing list