Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug? piping ls to anonymous function changes subsequent behaviour of ls
- X-seq: zsh-users 26090
- From: vapnik spaknik <vapniks@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Bug? piping ls to anonymous function changes subsequent behaviour of ls
- Date: Mon, 28 Sep 2020 00:31:03 +0000 (UTC)
- Archived-at: <https://zsh.org/users/26090>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-09/1846474183.1100394.1601253063804%40mail.yahoo.com>
- Authentication-results: zsh.org; iprev=pass (sonic308-8.consmr.mail.gq1.yahoo.com) smtp.remote-ip=98.137.68.32; dkim=pass header.d=yahoo.com header.s=s2048 header.a=rsa-sha256; dmarc=pass header.from=yahoo.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1601253068; bh=jieZx8wO6CLbE2eHvMIvCmiA4wUGufRPPd++djMyc7E=; h=Date:From:To:Subject:References:From:Subject; b=pWLtTVSVhouNwsWnnpNIlVVzM80qo7cp+YEfU3g9pBnKW6chGhHlktnefuJ2Pvo4wgJn3pGpb6qlGcHjwTWJP0tJj+iN7Gp/xKPUmmPOSpRcHDpke2TbAkoGq954UzdfQ1CeYPVp0QhW5K5s7UxlA8wfXQy9LBW0XUfCP9kZ11386O7eKroX9AZXmjN4EOpdEaQFjKgW7d9pNvEVn/DxmyZnrI82IsG0kzzs8lTUojNu96V8jmIjFFuyqDYDf12hr+sg2JjWjonvr22eNnVd6jPw88zhfS3xhI/NUmNZJc5JYLv2ry3N5NsV46nWGRaOC/cH7kppoAr4WuTLleQhvw==
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <1846474183.1100394.1601253063804.ref@mail.yahoo.com>
- Sender: zsh-users-request@xxxxxxx
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