Package: pdksh
Version: 5.2.14-23
Severity: normal

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

$ cmd=$(printf "alias a='echo OK >&2'\na")
$ printf "%s\n" "$cmd"
alias a='echo OK >&2'
a
$ printf "%s" "$cmd" | pdksh
OK
$ pdksh -c "$cmd"
pdksh: a: not found
$ 

There's no such problem with ksh93, bash in POSIX mode, and dash
(zsh 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 pdksh depends on:
ii  debianutils                   2.31       Miscellaneous utilities specific t
ii  libc6                         2.9-3      GNU C Library: Shared libraries

pdksh recommends no packages.

pdksh suggests no packages.

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