Re: [Rd] Output pipes to TTY hang

2024-05-20 Thread Zafer Barutcuoglu
Thank you, that makes sense. Not worth messing with those changes on my account, but since you asked, my actual use case was for an R script (or rather my package used by one) to display text (e.g. for --help) using the system PAGER, without writing temporary files for file.show() because modify

Re: [Rd] Output pipes to TTY hang

2024-05-20 Thread Tomas Kalibera
On 5/20/24 07:36, Zafer Barutcuoglu wrote: Hi, I am seeing this on Linux as well as MacOS: Opening any output pipe from R 4.4.0 to TTY programs like "less"/"more" hangs, SIGINT-proof: $ R/4.4.0/bin/Rscript -e 'pipe("less", "w")' $ R/4.4.0/bin/Rscript -e 'cat("test", file="|less") $ R/4.4.0/b

[Rd] Output pipes to TTY hang

2024-05-19 Thread Zafer Barutcuoglu
Hi, I am seeing this on Linux as well as MacOS: Opening any output pipe from R 4.4.0 to TTY programs like "less"/"more" hangs, SIGINT-proof: > $ R/4.4.0/bin/Rscript -e 'pipe("less", "w")' > $ R/4.4.0/bin/Rscript -e 'cat("test", file="|less") > $ R/4.4.0/bin/Rscript -e 'cat("test", file="|more")