]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r222716: sh: Fix $? in heredocs on simple commands.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 13 Aug 2011 21:33:50 +0000 (21:33 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 13 Aug 2011 21:33:50 +0000 (21:33 +0000)
commited0c60d2d7e18c637d84dfeae53c0d693c089ecd
tree22f188acd1b8d5891db098276816a7cd1a013ec9
parent7ba77ae54b292f93387b9bf061947ee5a91eed2f
MFC r222716: sh: Fix $? in heredocs on simple commands.

The patch is slightly different because redirected compound commands are
handled differently in stable/8 (no separate function, redirection errors
are fatal).

PR: bin/41410

git-svn-id: svn://svn.freebsd.org/base/stable/8@224854 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/sh/eval.c
tools/regression/bin/sh/expansion/heredoc2.0 [new file with mode: 0644]