Package: zsh
Version: 4.3.9-1
Severity: normal

Aliases are not expanded with the -c option, as shown below.

vin% cmd=$(printf "emulate sh\nalias a='echo OK >&2'\na")
vin% printf "%s\n" "$cmd"
emulate sh
alias a='echo OK >&2'
a
vin% printf "%s" "$cmd" | zsh -f
OK
vin% zsh -fc "$cmd"
zsh:3: command not found: a
vin% 

There's no such problem with ksh93, bash in POSIX mode, and dash
(pdksh has the same bug).

-- System Information:
Debian Release: 5.0
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26.5-20080922 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages zsh depends on:
ii  libc6                     2.9-3          GNU C Library: Shared libraries
ii  libcap2                   2.16-2         support for getting/setting POSIX.
ii  libncursesw5              5.7+20090214-1 shared libraries for terminal hand

Versions of packages zsh recommends:
ii  libpcre3                      7.8-2      Perl 5 Compatible Regular Expressi

Versions of packages zsh suggests:
ii  zsh-doc                       4.3.9-1    zsh documentation - info/HTML form

-- 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