zsh ignores aliases when using exec precommand
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zsh (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: zsh
I have the following in my ~/.zshrc: "alias ec='emacsclient'"
When I execute "ec -nc" in an interactive session, this does what I want it to do, but when I do "exec ec -nc", nothing happens and the shell exits. When I do "exec ec -nc &> /tmp/test.out", the file /tmp/test.out contains "zsh: command not found: ec".
What I expected to happen was that emacsclient would be executed (replacing the zsh process), and passed the parameters "-nc".
Some data:
domi@arial:~> lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
domi@arial:~> apt-cache policy zsh
zsh:
Geïnstalleerd: 4.3.10-5ubuntu1
Kandidaat: 4.3.10-5ubuntu1
Versietabel:
4.3.10-6 0
650 http://
*** 4.3.10-5ubuntu1 0
701 http://
100 /var/lib/
4.3.6-6 0
700 http://
ProblemType: Bug
Architecture: i386
Date: Tue Nov 17 17:16:27 2009
DistroRelease: Ubuntu 9.10
Package: zsh 4.3.10-5ubuntu1
ProcEnviron:
PATH=(custom, user)
LANG=nl_BE.UTF-8
SHELL=/usr/bin/zsh
ProcVersionSign
SourcePackage: zsh
Uname: Linux 2.6.31-14-generic i686
XsessionErrors:
(firefox:1706): Gdk-WARNING **: XID collision, trouble ahead
(firefox:1706): Gdk-WARNING **: XID collision, trouble ahead