Subject: Re: /etc/rc.d scripts and $PATH
To: NetBSD-current Discussion List <current-users@netbsd.org>
From: Peter Seebach <seebs@plethora.net>
List: current-users
Date: 09/15/2003 14:23:30
In message <m19yyve-000B3IC@proven.weird.com>, "Greg A. Woods" writes:
>[ On Monday, September 15, 2003 at 04:02:24 (-0500), Peter Seebach wrote: ]
>> Subject: /etc/rc.d scripts and $PATH
>>
>> In days of yore, there was no convenient way to access stat(2) from a command
>> line, so I wrote a utility named, inventively, 'stat'.
>> 
>> So now, if I try to run some rc.d scripts from a prompt, they fail because
>> my $PATH is wrong.  Shouldn't rc.d scripts set their paths to /usr/bin and
>> /usr/sbin (or whatever) preemptively?
>
>I think the right question would be:  why isn't your "stat" utility
>sitting in /bin where: (a) it will be around at the time _any_ rc.d
>script might need it; and (b) all good, small, low-level, user-land,
>system tools reside?  :-)

Because my 'stat' utility isn't the one that /etc/rc.d/smmsp wants - smmsp
wants the new 'stat' utility that got added to NetBSD sometime within the
last few years.

-s