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