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

Bug? piping ls to anonymous function changes subsequent behaviour of ls



After piping ls to an anonymous function it stops working (i.e. produces no output) on subsequent invocations.
I have to start another shell to get it working again:

> ls
Desktop Downloads Videos... etc.
> ls | () {echo foo}
foo
> ls

> # try again..
> ls

> #!?*#!!! try in a new shell...
> zsh
....
> ls
Desktop Downloads Videos... etc.
> # Yay! working again

What's going on? Is this a bug?




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