/bin/sh => STDIN & functions, var scope messing
Václav Zeman
vhaisman at gmail.com
Tue May 28 09:48:50 UTC 2013
On 27 May 2013 21:58, Reid Linnemann wrote:
> from SH(1)
>
> "Note that unlike some other shells, sh executes each process in a pipe-
> line with more than one command in a subshell environment and as a
> child
> of the sh process."
>
> I'm taking this to mean that redirecting to sh_f has sh_f execute in a
> subshell in which global_scope_var changes, but the original shell's copy
> is uncahnged.
Curious. Which of the two behaviours is POSIXly correct?
--
VZ
More information about the freebsd-hackers
mailing list