[arch-general] Start a daemon, show a syntax error

Sebastian Schwarz seschwar at googlemail.com
Fri Feb 17 12:24:52 EST 2012


On 2012-02-17 at 19:00 +0200, Mantas Mikulėnas wrote:
> Commands in a pipe would be executed using subshells, so any
> changes the 'while' loop makes to variables would be lost when
> the subshell exited.

I wasn't aware of this.  I guess I was lucky I didn't run into a
problem with this in all my scripts up to now.

Also zsh doesn't seem to use subshells for commands in
pipelines.  So in zsh both forms would indeed yield the same
result.

But thank you for the explanation.

Regards,
Sebastian


More information about the arch-general mailing list