[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash "bug" - in "read -e -r var"

From: Dan Douglas
Subject: Re: Bash "bug" - in "read -e -r var"
Date: Mon, 15 Dec 2014 06:11:25 -0600
User-agent: KMail/4.14.3 (Linux/3.17.3; KDE/4.14.3; x86_64; ; )

On Sunday, December 14, 2014 04:27:51 PM Chet Ramey wrote:
> On 12/13/14 12:06 AM, Daniel A. Gauthier wrote:
> > 
> > If you do a "read -e -r var" in bash, and use tab completion to fill-in
> > a filename, it fills in "My\ File\ Name.txt" and that's exactly
> > what's read into the variable.  The fix is simple, in tab completion,
> > the text placed into the buffer should be in the same format that the
> > read is expecting, so if "-r" is in effect for the read operation, the
> > the filename should be added to the buffer unquoted.
> This seems like an awfully specific case (-r in effect, one or fewer
> variables specified) to change readline for.  I question whether it's of
> general interest.
I'm generally interested in what read with (or without) -r combined with -e 
even means. I understand that read's now basically useless behavior without -r 
was originally there to make using it interactively without a line editor 
slightly easier.

Dan Douglas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]