Re: /usr/local/bin in $PATH in system scripts?

2007-05-12 Thread Jan Claeys
Op dinsdag 08-05-2007 om 21:42 uur [tijdzone +0100], schreef Fergal Daly: > I'm looking for clarification of policy in the context of this bug > > https://launchpad.net/ubuntu/+source/gnome-system-tools/+bug/71336 > > and the fact that having your own version of Perl in /usr/local will > almost c

Re: /usr/local/bin in $PATH in system scripts?

2007-05-10 Thread Micah Cowan
Ming Hua wrote: > On Thu, May 10, 2007 at 08:33:41PM -0700, Micah Cowan wrote: >> Ming Hua wrote: >>> For the sake of discussion, I think >>> >>> #!/usr/bin/env perl >>> >>> will pick up $PATH and is a valid #! line. I also believe this is widely >>> used. >> Yes, it will. But isn't that a somewha

Re: /usr/local/bin in $PATH in system scripts?

2007-05-10 Thread Ming Hua
On Thu, May 10, 2007 at 08:33:41PM -0700, Micah Cowan wrote: > Ming Hua wrote: > > > > For the sake of discussion, I think > > > > #!/usr/bin/env perl > > > > will pick up $PATH and is a valid #! line. I also believe this is widely > > used. > > Yes, it will. But isn't that a somewhat silly su

Re: /usr/local/bin in $PATH in system scripts?

2007-05-10 Thread Micah Cowan
Ming Hua wrote: > On Thu, May 10, 2007 at 08:59:19AM -0700, Micah Cowan wrote: >> Fergal Daly wrote: >> >>> You are also implying that everything in /usr/bin that start with >>> >>> #! /usr/bin/{perl,python,...} >>> >>> is wrong and should actually start with >>> >>> #! {perl,python,...} >> That do

Re: /usr/local/bin in $PATH in system scripts?

2007-05-10 Thread Ming Hua
On Thu, May 10, 2007 at 08:59:19AM -0700, Micah Cowan wrote: > Fergal Daly wrote: > > > You are also implying that everything in /usr/bin that start with > > > > #! /usr/bin/{perl,python,...} > > > > is wrong and should actually start with > > > > #! {perl,python,...} > > That doesn't work. #!

Re: /usr/local/bin in $PATH in system scripts?

2007-05-10 Thread Fergal Daly
On 10/05/07, Micah Cowan <[EMAIL PROTECTED]> wrote: > Fergal Daly wrote: > > On 10/05/07, Forest Bond <[EMAIL PROTECTED]> wrote: > >> On Wed, May 09, 2007 at 07:03:30PM -0400, Jim Doherty wrote: > >>> Sorry, I have no idea what ubuntu policy is. But good defensive > >>> scripting practice include

Re: /usr/local/bin in $PATH in system scripts?

2007-05-10 Thread Micah Cowan
Fergal Daly wrote: > On 10/05/07, Forest Bond <[EMAIL PROTECTED]> wrote: >> On Wed, May 09, 2007 at 07:03:30PM -0400, Jim Doherty wrote: >>> Sorry, I have no idea what ubuntu policy is. But good defensive >>> scripting practice includes setting your $PATH to something safe. A >>> good script sho

Re: /usr/local/bin in $PATH in system scripts?

2007-05-10 Thread Fergal Daly
On 10/05/07, Forest Bond <[EMAIL PROTECTED]> wrote: > On Wed, May 09, 2007 at 07:03:30PM -0400, Jim Doherty wrote: > > Sorry, I have no idea what ubuntu policy is. But good defensive > > scripting practice includes setting your $PATH to something safe. A > > good script should always not trust t

Re: /usr/local/bin in $PATH in system scripts?

2007-05-10 Thread Forest Bond
On Wed, May 09, 2007 at 07:03:30PM -0400, Jim Doherty wrote: > Sorry, I have no idea what ubuntu policy is. But good defensive > scripting practice includes setting your $PATH to something safe. A > good script should always not trust the environment it was handed along > with many other things

Re: /usr/local/bin in $PATH in system scripts?

2007-05-09 Thread Jim Doherty
Fergal Daly wrote: > Hi, > > I'm looking for clarification of policy in the context of this bug > > https://launchpad.net/ubuntu/+source/gnome-system-tools/+bug/71336 > > and the fact that having your own version of Perl in /usr/local will > almost certainly break your Ubuntu admin tools. > > I

Re: /usr/local/bin in $PATH in system scripts?

2007-05-09 Thread Fergal Daly
On 09/05/07, Soren Hansen <[EMAIL PROTECTED]> wrote: > On Wed, May 09, 2007 at 10:43:29AM +0200, Oliver Grawert wrote: > > > "However, because /usr/local and its contents are for exclusive use > > > of the local administrator, a package must not rely on the presence > > > or absence of files or dir

Re: /usr/local/bin in $PATH in system scripts?

2007-05-09 Thread Soren Hansen
On Wed, May 09, 2007 at 10:43:29AM +0200, Oliver Grawert wrote: > > "However, because /usr/local and its contents are for exclusive use > > of the local administrator, a package must not rely on the presence > > or absence of files or directories in /usr/local for normal > > operation." > how does

Re: /usr/local/bin in $PATH in system scripts?

2007-05-09 Thread Oliver Grawert
hi, On Di, 2007-05-08 at 21:42 +0100, Fergal Daly wrote: > > "However, because /usr/local and its contents are for exclusive use of > the local administrator, a package must not rely on the presence or > absence of files or directories in /usr/local for normal operation." how does that even remot

Re: /usr/local/bin in $PATH in system scripts?

2007-05-08 Thread Fergal Daly
On 08/05/07, Daniel Robitaille <[EMAIL PROTECTED]> wrote: > On 5/8/07, Fergal Daly <[EMAIL PROTECTED]> wrote: > > > > I can't see any real benefit to including /usr/local/bin and I can > > find plenty of people in the forums who can't start *-admin, > > presumably due to problems similar to mine, >

Re: /usr/local/bin in $PATH in system scripts?

2007-05-08 Thread Daniel Robitaille
On 5/8/07, Fergal Daly <[EMAIL PROTECTED]> wrote: > > I can't see any real benefit to including /usr/local/bin and I can > find plenty of people in the forums who can't start *-admin, > presumably due to problems similar to mine, I personally use /usr/local/bin to install my own version of Firefox