tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: $$ broken??



On Mon, Mar 25, 2013 at 10:08:10AM -0400, Mouse wrote:
 > And, yeah, that's probably it.  rc.local is run from /etc/rc.d/local,
 > which is not called local.sh and thus is run in a subshell.  Oddly,
 > it's run with ( set $_arg ; . $_file ) rather than just $_file $_arg;
 > it's almost as if someone were trying to break $$ within rc.d scripts.
 > Since I consider that implausible, this leads me to ask, next, why it's
 > done that way.

...so every rc script doesn't have to reload rc.subr, I assume, as
if they did you'd be complaining about the performance :-)

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index