From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14648 invoked from network); 7 Sep 2006 18:49:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Sep 2006 18:49:31 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 74192 invoked from network); 7 Sep 2006 18:49:25 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Sep 2006 18:49:25 -0000 Received: (qmail 22876 invoked by alias); 7 Sep 2006 18:49:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10691 Received: (qmail 22866 invoked from network); 7 Sep 2006 18:49:14 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 7 Sep 2006 18:49:14 -0000 Received: (qmail 72619 invoked from network); 7 Sep 2006 18:49:14 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 7 Sep 2006 18:49:13 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GLOt8-0003es-1v for zsh-users@sunsite.dk; Thu, 07 Sep 2006 20:46:10 +0200 Received: from dsl-47-81.dsl.netsource.ie ([213.79.47.81]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Sep 2006 20:46:10 +0200 Received: from thorsten by dsl-47-81.dsl.netsource.ie with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Sep 2006 20:46:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: global aliases and scripts in $path Date: Thu, 7 Sep 2006 19:41:33 +0100 Message-ID: <8fa44mahj1nj$.1fkuabkux8c7f.dlg@40tude.net> 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: dsl-47-81.dsl.netsource.ie User-Agent: 40tude_Dialog/2.0.15.1 Sender: news Hi, I've got a few global aliases[1] that allow me run my preferred scripts without the "./" nuisance (no I generally don't want the current folder in my path because of the security implications). This works fine but a few apps in /bin have an extension. So when I type rst2html.py (which is in /bin) python says it can't find the file (yep, it's not in the current directory). Is there a way out of this dilemma - meaning keeping the useful global alias and also be able to run files in $path who have an aliases extension?! Thorsten [1] alias -s exe=wine \ py=python \ zsh=zsh