Re: Start a daemon, show a syntax error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux