Re: read -E with read -d in completion function

2023-08-22 Thread Chet Ramey
On 8/21/23 5:50 PM, Grisha Levit wrote: The new read -E option is a nice addition. I think it's not unreasonable for a completion function to itself invoke `read' (with a file or pipe as input, not a tty) and this mostly works out fine, unless the -d option is used since the builtin stores the de

read -E with read -d in completion function

2023-08-21 Thread Grisha Levit
The new read -E option is a nice addition. I think it's not unreasonable for a completion function to itself invoke `read' (with a file or pipe as input, not a tty) and this mostly works out fine, unless the -d option is used since the builtin stores the delimiter arg in a static variable: $ f() {