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

Re: autoloaded functions through |



G C Wing wrote:
>Well, looks like a bug. (zsh 3.0.3-test3)
...
>% ls | cat
>this is ls
>% which -a ls
>undefined ls () { }
>/bin/ls

No, it's not a bug.  the left hand side of a pipeline runs in a
subshell, so the autoloading can't affect the main shell.

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author