Package: bash
Version: 3.1-2
Severity: normal

`shopt -s no_empty_cmd_completion' allows us to paste in segments of
bash scripts with indenting via X's copy buffer, without erronously
triggering bash completion.

However, it only works if we use either tabs or spaces exclusively in
the scripts being copied.  If a line being pasted contains a bunch of
spaces, then a tab, then completion is attempted on all ~4000 items in
one's PATH.

Spaces alone should hence be treated as an empty readline buffer for
the purposes of no_empty_cmd_completion.


Alternatively, if it is at all possible to detect that the contents of
a copy buffer are being pasted into bash (via either shift-insert, or
the middle mouse button), then bash should have the option to turn off
completion all together, for the duration of the copy.



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.1
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages bash depends on:
ii  base-files                    3.1.9      Debian base system miscellaneous f
ii  debianutils                   2.15.2     Miscellaneous utilities specific t
ii  libc6                         2.3.5-12   GNU C Library: Shared libraries an
ii  libncurses5                   5.5-1      Shared libraries for terminal hand

bash recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to