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

Bug#303578: openoffice.org-debian-files: Bash completions do not properly deal with spaces in filenames



Package: openoffice.org-debian-files
Version: 1.1.3-8+1
Severity: normal

Currently the bash completions for openoffice.org do not deal properly
with spaces within filenames.  An example would be a filename such as:
'Mgmt Mtg Agenda 03-16-05.doc'
As soon as it is unique it should expand to:
'Mgmt\ Mtg\ Agenda\ 03-16-05.doc'
Currently it gives options of:
'Mgmt          03-16-05.doc  Agenda        Mtg'

Solution, in each function add "IFS=$'\t\n'" to the local line, so
instead of:
local prev options
make it
local prev options IFS=$'\t\n'

To be a stickler, 'cur' should be listed on the local line as well.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages openoffice.org-debian-files depends on:
ii  debianutils                   2.13.2     Miscellaneous utilities specific t
ii  openoffice.org                1.1.3-8    high-quality office productivity s
ii  openoffice.org-bin            1.1.3-8    OpenOffice.org office suite binary

-- no debconf information



Reply to: