From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8225 invoked by alias); 3 Aug 2010 09:29:47 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15224 Received: (qmail 12181 invoked from network); 3 Aug 2010 09:29:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at igpm.rwth-aachen.de does not designate permitted sender hosts) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-disposition: inline Content-type: text/plain; charset=us-ascii X-IronPort-AV: E=Sophos;i="4.55,308,1278280800"; d="scan'208";a="67545892" Date: Tue, 03 Aug 2010 10:59:37 +0200 From: Helmut Jarausch Subject: alias in .zprofile - strange effect To: zsh-users@zsh.org X-Mailer: Balsa 2.4.7 Message-id: <1280825977.3079.0@numa-i> Hi, I'm using zsh GIT- 2010/07/20 In my home directory I have a .zprofile file with the following lines export PGPPATH=~/.pgp alias lpps="lpr -Ppsloc" alias cdc="cd ..;cd ~-" #if [[ $DISPLAY == ':0.0' ]]; then # /usr/X11R6/bin/xmodmap ~/.Xmodmap #fi # export OPERADIR=/usr/local/share/opera export NEDIT_HOME=/home/jarausch/.nedit If I enter 'cdc', ZSH doesn't know it. But if I (re-)define it by alias cdc="cd ..;cd ~-" then 'cdc' is known afterwards. And I've debugged it, .zprofile has been run during startup. What's going on? Many thanks for a hint, Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany