From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FmdZd-0004VK-6O for garchives@archives.gentoo.org; Sat, 03 Jun 2006 21:22:21 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k53LKHco014535; Sat, 3 Jun 2006 21:20:17 GMT Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k53LBTRu011723 for ; Sat, 3 Jun 2006 21:11:30 GMT Received: by wr-out-0506.google.com with SMTP id i12so742672wra for ; Sat, 03 Jun 2006 14:11:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s1e3Sta79+lbsenOUteBCJRHlx7lbqxGJJafFbz5iL9x7+thaQEsRn+S4M9ZQ6UOi9XdbEd2y44E+qyjz81oE31zkiAxhnBQG+uJYZECKyX/v8c6BK9uhZI+k3RPfkiUmaCTo6LqzAeuCE0PhB1DL87xQ8Nb9+ZKCO1sLvhm6kA= Received: by 10.54.127.4 with SMTP id z4mr3338162wrc; Sat, 03 Jun 2006 14:11:29 -0700 (PDT) Received: by 10.54.105.4 with HTTP; Sat, 3 Jun 2006 14:11:29 -0700 (PDT) Message-ID: <169ffc030606031411x5ad27411qf6620f2c7f739462@mail.gmail.com> Date: Sat, 3 Jun 2006 22:11:29 +0100 From: znx To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] bash wizardry needed: PATH and MANPATH grow and grow and grow In-Reply-To: <9acccfe50605261952o7b548a6ah9710d3f8fff42f0d@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9acccfe50605211556h542921a9kbd79da6a016e2101@mail.gmail.com> <169ffc030605231306m37b7e90ayda8315a8b84dff44@mail.gmail.com> <9acccfe50605240758n51991430hc3a15305f0f74133@mail.gmail.com> <169ffc030605251827p1d046645oaf1cd85ede10c6e5@mail.gmail.com> <9acccfe50605261952o7b548a6ah9710d3f8fff42f0d@mail.gmail.com> X-Archives-Salt: 22815a68-03ee-437b-8a58-d86d107674e8 X-Archives-Hash: 72b80fe090693915c3157e3ee460a420 Hi, First .. arrgghh .. I forgot, I am deeply sorry.. On 27/05/06, Kevin O'Gorman wrote: > Open to debate. I'd think it's not very dangerous at the *end* of the > PATH. True, I have modified the script so that a . may enter the PATH (etc) only as the final entry. Also good point about ~/bin .. it is just as dangerous. > Thanks... Check out this: http://kutzooi.co.uk/cleanpath.sh.txt All dups will be stripped, all "." entries (bar the last) will be stripped also. Hope this is what you needed. Mark -- gentoo-user@gentoo.org mailing list