Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
TTY EOF ignored during read -d ?
- X-seq: zsh-workers 39586
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: TTY EOF ignored during read -d ?
- Date: Fri, 7 Oct 2016 08:54:11 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:to:subject:mime-version; bh=41bQk2rglY+NBBFypueDNB11M1SkTQQC+JWJUEhNIcs=; b=UO3K3IfYMFx8Yop50mYqhHrwiNvd+2o2lAGi3yqocvJ+tGNz7zq6xfGEe1oPVFk5KC M7gCD8x2jmviu3lpuLjpHHo2FC2hqLLbcHERpBSeE315ZddW8OFpoX4CzIt57m3kWlp8 QyvSBLOyFmGgPyFMxxMl0d+BFYhIa4mjDWhUZR+iYTx0RlMRtD0WZ+ZROZ7l1oaGmQ4d FFXFfCJLqgs+htg1rsmHeN08s9oQ9W+GPvxwYn8UzeCPNegyaYI0ZSZpdaxVrMpkcusI 7l/1A7O61TzOQOIZt0Gns5gX6Md2/TykjxNqbp8/pNtEwwWC7JD+HldS+sB63UGwOBx4 NWjg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Try this from an interactive shell:
() { local -a lines; IFS=$'\n' read -d '' -A lines; print $#lines }
I was not able to end the input by typing ctrl-D. I initially thought
this might be related to the recent refactoring of execcmd(), but it
appears to be a long-standing problem, it also happens (with a named
function) in 4.2.0.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author