From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26554 invoked from network); 13 Sep 2004 18:59:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Sep 2004 18:59:39 -0000 Received: (qmail 80210 invoked from network); 13 Sep 2004 18:59:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Sep 2004 18:59:31 -0000 Received: (qmail 15613 invoked by alias); 13 Sep 2004 18:58:50 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7984 Received: (qmail 15603 invoked from network); 13 Sep 2004 18:58:49 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Sep 2004 18:58:49 -0000 Received: (qmail 78524 invoked from network); 13 Sep 2004 18:57:51 -0000 Received: from main.gmane.org (80.91.229.2) by a.mx.sunsite.dk with SMTP; 13 Sep 2004 18:57:50 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1C6w1O-0001HK-00 for ; Mon, 13 Sep 2004 20:57:50 +0200 Received: from numerus.ling.uu.se ([130.238.78.148]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Sep 2004 20:57:40 +0200 Received: from bkhl by numerus.ling.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Sep 2004 20:57:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: zsh-users@sunsite.dk To: zsh-users@sunsite.dk From: bkhl@elektrubadur.se (=?iso-8859-1?q?Bj=F6rn_Lindstr=F6m?=) Subject: Re: Two simple questions Date: Mon, 13 Sep 2004 20:57:37 +0200 Message-ID: References: <20040913155253.56857.qmail@web61306.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: numerus.ling.uu.se Mail-Copies-To: never X-Home-Page: http://bkhl.elektrubadur.se/ User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:n6eVal8IeVy2kNXxFzRTQz6cNbU= Sender: news X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: ** X-Spam-Status: No, hits=2.6 required=6.0 tests=BAYES_44,RCVD_IN_SORBS, RCVD_IN_SORBS_HTTP autolearn=no version=2.63 X-Spam-Hits: 2.6 Tero Niemela writes: > I'm seeing dirs like /bin /bin/ and even /bin// in my PATH. What would > be the best way to clean up the trailing slashes? "typeset -U path" > won't clean up paths if they have different number of trailing slashes > (I mean all those mentioned paths are left but other instances of, > e.g., /bin are of course cleaned). AFAIK, zsh never adds stuff to the path by itself with a trailing path - so just stopping to do that yourself in your own config files, should do the trick. If this doesn't help you, you'll just have to write your own function that normalises the paths - stripping the trailing slashes should be easy enough - typeset wont do that for you.