Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
function definition with & operator
- X-seq: zsh-workers 41629
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: function definition with & operator
- Date: Fri, 1 Sep 2017 14:09:55 -0400
- 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
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.
% foo() bar & type -f foo
foo () {
bar
}
% unfunction foo
% { foo() { bar }; : } & type -f foo
[1] 14551
foo not found
I don't have an actual use for it, but it is an minor bug.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author