Package: dds2tar Version: 2.5.2-3 Severity: normal
Port of scsi_vendor script from csh to bash broke 'disk' and 'cd' array handling - attached diff fixes it up. -kieren --- /usr/bin/scsi_vendor 2003-07-02 16:33:10.000000000 +0100 +++ scsi_vendor 2005-01-24 21:38:59.000000000 +0000 @@ -69,11 +69,11 @@ fi if [ $# -eq 2 ]; then v='' - if [[ "$1" == "disk" && $#d -ge $2 ]]; then - v=$d[$2] + if [[ "$1" == "disk" && [EMAIL PROTECTED] -ge $2 ]]; then + v=${d[$2]} fi - if [[ "$1" == "cd" && $#c -ge $2 ]]; then - v=$c[$2] + if [[ "$1" == "cd" && [EMAIL PROTECTED] -ge $2 ]]; then + v=${c[$2]} fi if [[ "$1" == "tape" && [EMAIL PROTECTED] -ge $2 ]]; then v=${s[$2]} -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.7 Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) Versions of packages dds2tar depends on: ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii tar 1.14-2 GNU tar -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]