Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

function definition with & operator



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