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 1Fjp1L-0006x4-El for garchives@archives.gentoo.org; Sat, 27 May 2006 02:59:19 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k4R2vCku001119; Sat, 27 May 2006 02:57:12 GMT Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k4R2qIWb007664 for ; Sat, 27 May 2006 02:52:18 GMT Received: by py-out-1112.google.com with SMTP id b29so28142pya for ; Fri, 26 May 2006 19:52:17 -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:references; b=WIVscxQnQstH/rkmKs9hyY0wjLG7lXSqJDKaloShebGK+cT8/G8wRrzgY1yJq8aOjdPDXk1JmK9XZ4ASmr5MwO/Cr+ZsDvJX3gI6/OSCNNbqGDCnjNyHjt+HdqJmfdkdMHhh+tJa3FRiWyYqIlbNUF0sMx/HPiu4fyVvPDlcUnw= Received: by 10.35.22.17 with SMTP id z17mr30360pyi; Fri, 26 May 2006 19:52:17 -0700 (PDT) Received: by 10.35.105.8 with HTTP; Fri, 26 May 2006 19:52:17 -0700 (PDT) Message-ID: <9acccfe50605261952o7b548a6ah9710d3f8fff42f0d@mail.gmail.com> Date: Fri, 26 May 2006 19:52:17 -0700 From: "Kevin O'Gorman" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] bash wizardry needed: PATH and MANPATH grow and grow and grow In-Reply-To: <169ffc030605251827p1d046645oaf1cd85ede10c6e5@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: multipart/alternative; boundary="----=_Part_64252_17074652.1148698337819" References: <9acccfe50605211556h542921a9kbd79da6a016e2101@mail.gmail.com> <169ffc030605231306m37b7e90ayda8315a8b84dff44@mail.gmail.com> <9acccfe50605240758n51991430hc3a15305f0f74133@mail.gmail.com> <169ffc030605251827p1d046645oaf1cd85ede10c6e5@mail.gmail.com> X-Archives-Salt: 30ce737c-79d6-409b-818d-4da0c47a3be7 X-Archives-Hash: 3e321b2f8640aefdb0c5c6e0f3a81c32 ------=_Part_64252_17074652.1148698337819 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 5/25/06, znx wrote: > > > This _does_ help. It's mysterious enough that I tested it, and it seem= s > to > > work except that it removes "." from any path. This is not quite what = I > want. > > Glad it was almost a success ;) Interesting, thats not something I > noticed before, I have never wished "." in my PATH, I should point out > of course that "." in your PATH is a security risk waiting to happen > ;) Open to debate. I'd think it's not very dangerous at the *end* of the PATH= . The usual worry is a Trojan masquerading as a normal utility, chosen early because of the order of things in the searchpath. When I use ".", I put it at the end. It's no worse than the fairly common ~/bin in a searchpath, which I'd actually rate more dangerous -- 1) It's just as hard/easy to put something in ~/bin as in ~/ 2) It's more likely to go unnoticed in ~/bin And, since I do lots of development of itsy-bitsy scripts and C programs, I'm using such stuff all the time. Nevertheless it should not be removing the entry unless its a dup. I > have quickly confirmed the behaviour it is defn stripping all "." > entries. > > *sigh* the script needs some work .. I'll play with it again tomorrow.... > > Thanks for the feedback, > Mark Thanks... ++ kevin --=20 Kevin O'Gorman, PhD ------=_Part_64252_17074652.1148698337819 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 5/25/06, znx <znxster@gmail.com> wrote:
> This _does_ help.  It's mysterious enough that I tested it, = and it seems to
> work except that it removes "." from any = path.  This is not quite what I want.

Glad it was almost a= success ;) Interesting, thats not something I
noticed before, I have never wished "." in my PATH, I should = point out
of course that "." in your PATH is a security risk w= aiting to happen
;)

Open to debate.  I'd think it's not very dangerous at the *end* of the= PATH.
The usual worry is a Trojan masquerading as a normal utility, chosen
early because of the order of things in the searchpath.  When I use &q= uot;.", I
put it at the end.  It's no worse than the fairly common ~/bin in a se= archpath,
which I'd actually rate more dangerous --
   1) It's just as hard/easy to put something in ~/bin as in ~/    2) It's more likely to go unnoticed in ~/bin

And, since I do lots of development of itsy-bitsy scripts and C programs, I'm using such stuff all the time.
 

N= evertheless it should not be removing the entry unless its a dup. I
have= quickly confirmed the behaviour it is defn stripping all "."
entries.

*sigh* the script needs some work .. I'll play with it = again tomorrow....

Thanks for the feedback,
Mark

Thanks...

++ kevin

--
Kevin O'Gorman, PhD
------=_Part_64252_17074652.1148698337819-- -- gentoo-user@gentoo.org mailing list