From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17719 invoked from network); 11 Nov 2004 14:28:54 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Nov 2004 14:28:54 -0000 Received: (qmail 68865 invoked from network); 11 Nov 2004 14:28:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Nov 2004 14:28:48 -0000 Received: (qmail 22879 invoked by alias); 11 Nov 2004 14:28:38 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8196 Received: (qmail 22865 invoked from network); 11 Nov 2004 14:28:38 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Nov 2004 14:28:38 -0000 Received: (qmail 67908 invoked from network); 11 Nov 2004 14:28:37 -0000 Received: from main.gmane.org (80.91.229.2) by a.mx.sunsite.dk with SMTP; 11 Nov 2004 14:28:37 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CSFwC-0003Z9-00 for ; Thu, 11 Nov 2004 15:28:36 +0100 Received: from isi-dial-142-29.isionline-dialin.de ([195.158.142.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Nov 2004 15:28:36 +0100 Received: from thorsten by isi-dial-142-29.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Nov 2004 15:28:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: suffix alias Date: Thu, 11 Nov 2004 15:28:29 +0100 Message-ID: <1bvxo3gxze39v$.dlg@thorstenkampe.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: isi-dial-142-29.isionline-dialin.de User-Agent: 40tude_Dialog/2.0.14.1de Sender: news X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_01,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: -0.0 Hi, I have a suffix alias "alias -s py=python". Now I can execute Python scripts by name that don't have a "she-bang" and aren't executable. That's great. But now I noticed that I cannot execute Python scripts anymore that are placed in my path (/usr/bin for example) because zsh doesn't search the path anymore for the suffix alias. Is there a solution for this problem? Thorsten -- For instance: thorsten@cathedral% pwd /home/thorsten thorsten@cathedral% rst2html.py --version python: can't open file 'rst2html.py' thorsten@cathedral% unalias -s py thorsten@cathedral% rst2html.py --version rst2html.py (Docutils 0.3.6) That's right - 'rst2html.py' isn't in the current working directory but in /usr/bin where the install put it.