Package: xen-tools
Version: 4.2-1
Severity: normal
Tags: patch

The "${variable:length}" construct is bash specific, it doesn't work with dash, which is now the default shell for Debian.

Attached to this e-mail is a patch which may seem less elegant than the previous code, but it works under both bash and dash (I didn't test other shells).


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-xen-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xen-tools depends on:
ii  debootstrap                   1.0.26     Bootstrap a basic Debian system
ii libconfig-inifiles-perl 2.52-1 Read .ini-style configuration file ii libfile-slurp-perl 9999.13-1 single call read & write file rout
ii  libtext-template-perl         1.45-1     Text::Template perl module
ii  perl-modules                  5.10.1-16  Core Perl modules

Versions of packages xen-tools recommends:
ii libexpect-perl 1.20-2 Expect.pm - Perl Expect interface
ii  rinse                         1.7-1      RPM installation environment
ii  xen-hypervisor-4.0-i386 [xen- 4.0.1-1    The Xen Hypervisor on i386
pn  xen-shell                     <none>     (no description available)

Versions of packages xen-tools suggests:
pn  btrfs-tools                   <none>     (no description available)
pn  cfengine2                     <none>     (no description available)
pn  evms-cli                      <none>     (no description available)
pn  reiserfsprogs                 <none>     (no description available)
ii  xen-utils-4.0 [xen-utils]     4.0.1-1    XEN administrative tools
pn  xfsprogs                      <none>     (no description available)

-- Configuration Files:
/etc/xen-tools/xen-tools.conf changed [not included]


--
Raphaël HALIMI
65c65
<    file=/${i:$sourcelen}
---
>    file=`echo "$i" | sed -e "s#\`echo \"$i\" | head -c $sourcelen\`##"`

Reply via email to