Re: read -ed $'\r' messes up Enter key at the prompt

2019-04-26 Thread Chet Ramey
On 4/26/19 10:09 AM, Stephane Chazelas wrote: > One can use: > > IFS= read -i "$var" -red $'\r' var > > In bash as the equivalent of zsh's > > vared var > > > To edit the content of a variable (with the added restriction > that $var can't contain CR or NUL characters), using ^V^J to >

read -ed $'\r' messes up Enter key at the prompt

2019-04-26 Thread Stephane Chazelas
One can use: IFS= read -i "$var" -red $'\r' var In bash as the equivalent of zsh's vared var To edit the content of a variable (with the added restriction that $var can't contain CR or NUL characters), using ^V^J to embed newline characters. But I find that after I run that command an

Re: Bash-5.0 Official patch 7

2019-04-26 Thread Vladimir Marek
Hi, > > Bash is one of the components we follow closely, so I'll be filing > > internal bugs to update to latest patch level tomorrow. The Makefile > > lists requirements > > > > REQUIRED_PACKAGES += library/ncurses > > REQUIRED_PACKAGES += shell/ksh93 > > REQUIRED_PACKAGES += terminal/screen > >