Package: bash
Version: 3.1-3
Severity: normal
Tags: patch
Hi,
the minicom completion has 2 problems:
(1) The location of configs is /etc/minicom/minirc.*, not /etc/minirc.*
(2) If no such file is found, an error is printed in bash
Example:
$ minicom ls: /etc/minirc.*: No such file or directory
Consider this patch:
--- bash_completion 2006-03-16 11:22:52.000000000 +0100
+++ /home/ernie/bash_completion 2006-03-16 11:22:30.000000000 +0100
@@ -8803,7 +8803,7 @@
COMPREPLY=( $( compgen -W '-s -o -m -M -z -l -L -w -a -t \
-c -S -d -p -C -T -8' -- $cur ) )
else
- COMPREPLY=( $( command ls /etc/minirc.* | sed -e
's|/etc/minirc.||' | grep "^$cur" ) )
+ COMPREPLY=( $( command ls /etc/minicom/minirc.* 2>/dev/null |
sed -e 's|/etc/minicom/minirc.||' | grep "^$cur" ) )
fi
} &&
complete -F _minicom minicom
Thanks!
bye,
Roland
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_GB.UTF-8)
Versions of packages bash depends on:
ii base-files 3.1.11 Debian base system miscellaneous f
ii debianutils 2.15.3 Miscellaneous utilities specific t
ii libc6 2.3.6-3 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]