#578193 bash: The nospace completion options does not work as advertised

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
Michal Suchanek
Date:
2010-04-17 19:09:04 UTC
Severity:
normal
#578193#5
Date:
2010-04-17 19:04:57 UTC
From:
To:
Package: bash
Version: 3.2-4
Severity: normal

  nospace Tell  readline not to append a space (the default) to words
  completed at the end of the line

This is inaccurate. The option also turns off quoting of whitespace in
completed words which is undocumented and probably undesirable as it
makes completing strings with spaces in them quite problematic.

To complete such string one has to prefix the start of the word with a
doublequote in advance, the completion fails otherwise. Adding "\ " at
the end of the word is not recognized as space and unambiguous matches
with a space in them are completed without the backslash.