Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: function definition with & operator
- X-seq: zsh-workers 41631
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: function definition with & operator
- Date: Fri, 1 Sep 2017 17:23:04 -0400
- In-reply-to: <CAH+w=7Z9diXFviDw81qMY4vhPMV1UDs65o+h89UDeT2FpTcvZA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <edfcc306-4f5e-63dd-00e0-2481e71ec5cc@gmx.com> <CAH+w=7Z9diXFviDw81qMY4vhPMV1UDs65o+h89UDeT2FpTcvZA@mail.gmail.com>
On 09/01/2017 04:46 PM, Bart Schaefer wrote:
> On Fri, Sep 1, 2017 at 11:09 AM, Eric Cook <llua@xxxxxxx> wrote:
>> The other week when messing around i noticed that you can define an function
>> in (what i thought would be) the background and it will remain in defined.
>
> Background jobs are always run in a subshell,
Exactly what i thought, but if that were the case, foo wouldn't be defined after
the first example since & was the terminator used instead of ;.
The second example behaves like i would expect.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author