[pkg-cryptsetup-devel] Bug#499936: cryptsetup: BASH completion doesn't work for key files
Stefan Goebel
debian at ntworks.net
Tue Sep 23 19:41:15 UTC 2008
Package: cryptsetup
Version: 2:1.0.6-6
Severity: minor
Tags: patch
BASH completion for cryptsetup doesn't complete file names for the -d
and --key-file options. The patch below should fix this:
*** /home/goeb/cryptsetup.diff
--- cryptsetup~ 2008-08-09 15:10:00.000000000 +0200
+++ cryptsetup 2008-09-23 21:35:57.000000000 +0200
@@ -18,6 +18,12 @@
argopts="$argopts -t --timeout -T --tries"
noargopts="-y --verify-passphrase --readonly --version --align-payload"
+ # complete file names for -d and --key-file
+ if [ x"-d" = x"$prev" -o x"--key-file" = x"$prev" ] ; then
+ COMPREPLY=( $(compgen -f "${cur}") )
+ return
+ fi
+
# If previous word was an option requiring an argument, can't complete
for argopt in $argopts ; do
if [ "$argopt" = "$prev" ] ; then
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-lenny.2.6.26.4-vmware.minimal.0.1
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cryptsetup depends on:
ii dmsetup 2:1.02.27-3 The Linux Kernel Device Mapper use
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libdevmapper1.02.1 2:1.02.27-3 The Linux Kernel Device Mapper use
ii libpopt0 1.14-4 lib for parsing cmdline parameters
ii libuuid1 1.41.0-3 universally unique id library
cryptsetup recommends no packages.
Versions of packages cryptsetup suggests:
pn dosfstools <none> (no description available)
pn initramfs-tools | linux-initr <none> (no description available)
ii udev 0.125-6 /dev/ and hotplug management daemo
-- no debconf information
More information about the pkg-cryptsetup-devel
mailing list