read -e deletes extra characters

2015-03-23 Thread isabella parakiss
rlwrap is a nice utility that enables readline's features in utilities that don't provide them. I tried to rewrite something similar in bash so here's a sketch of the code: while read -re; do history -p -- "$REPLY" history -s -- "$REPLY" done | ... The problem is when I pipe that to a progr

Re: bug in documentation?

2015-03-23 Thread Chet Ramey
On 3/22/15 11:48 PM, Christoph Anton Mitterer wrote: > Hey. > > On Sun, 2015-03-22 at 22:08 -0400, Chet Ramey wrote: >> It does when you call the exit builtin. EOF to an interactive shell >> executes the exit builtin, but you have to explicitly call it when in >> a non-interactive shell. > Ah...