On Wed, Feb 25, 2009 at 03:28:50AM +0100, Vincent Lefevre wrote: > 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).
That does appear to be the behavior. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org