zsh-users
 help / color / mirror / code / Atom feed
From: vapnik spaknik <vapniks@yahoo.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Bug? piping ls to anonymous function changes subsequent behaviour of ls
Date: Mon, 28 Sep 2020 00:31:03 +0000 (UTC)	[thread overview]
Message-ID: <1846474183.1100394.1601253063804@mail.yahoo.com> (raw)
In-Reply-To: <1846474183.1100394.1601253063804.ref@mail.yahoo.com>

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?


       reply	other threads:[~2020-09-28  0:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1846474183.1100394.1601253063804.ref@mail.yahoo.com>
2020-09-28  0:31 ` vapnik spaknik [this message]
2020-09-28  0:40   ` Bart Schaefer
2020-09-28  1:02     ` vapnik spaknik
2020-09-28  2:36       ` Bart Schaefer
2020-09-29 19:06         ` vapnik spaknik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1846474183.1100394.1601253063804@mail.yahoo.com \
    --to=vapniks@yahoo.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).