zsh ignores aliases when using exec precommand

Bug #484283 reported by Dominique Devriese
6
This bug affects 1 person
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://ftp.us.debian.org testing/main Packages
 *** 4.3.10-5ubuntu1 0
        701 http://be.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status
     4.3.6-6 0
        700 http://ftp.us.debian.org stable/main Packages

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
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
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

Revision history for this message
Dominique Devriese (dominique-devriese) wrote :
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.