zsh-workers
 help / color / mirror / code / Atom feed
* function definition with & operator
@ 2017-09-01 18:09 Eric Cook
  2017-09-01 20:46 ` Bart Schaefer
  2017-09-02 19:37 ` Peter Stephenson
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Cook @ 2017-09-01 18:09 UTC (permalink / raw)
  To: zsh-workers

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.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-02 19:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-01 18:09 function definition with & operator Eric Cook
2017-09-01 20:46 ` Bart Schaefer
2017-09-01 21:23   ` Eric Cook
2017-09-02 19:23     ` Bart Schaefer
2017-09-02 19:37 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).