Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Dec 2005 19:20:19 GMT
From:      Stefan Farfeleder <stefanf@FreeBSD.org>
To:        Hideo.Kogoe@Sun.COM, stefanf@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/45584: read builtin function of sh does not read standard input
Message-ID:  <200512081920.jB8JKJrW078968@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512081920.jB8JKJrW078968>