Package: bash
Version: 4.1-3
Severity: normal

This command works:

  duplicity full -vinfo --dry-run --no-encryption --include /etc/resolv.conf 
--exclude '**' /etc/ file:///tmp/

but when quoting is used to store the exclude option inside a
variable, the variable does not render properly.  There are several
syntactically correct ways to do this, but bash fails to handle all of
them:

  options="--exclude '**'"
  options="--exclude '"\*\*\'
  options=--exclude\ \'\*\*\'
  options="--exclude **"
  options="--exclude \'**\'"

  duplicity full -vinfo --dry-run --no-encryption --include /etc/resolv.conf 
${options} /etc/ file:///tmp/


-- System Information:
Debian Release: 6.0.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash depends on:
ii  base-files                6.0squeeze5    Debian base system miscellaneous f
ii  dash                      0.5.5.1-7.4    POSIX-compliant shell
ii  debianutils               3.4            Miscellaneous utilities specific t
ii  libc6                     2.11.3-3       Embedded GNU C Library: Shared lib
ii  libncurses5               5.7+20100313-5 shared libraries for terminal hand

Versions of packages bash recommends:
ii  bash-completion               1:1.2-3    programmable completion for the ba

Versions of packages bash suggests:
pn  bash-doc                      <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to