svn commit: r254217 - head/sys/conf

Hiroki Sato hrs at FreeBSD.org
Tue Aug 13 19:37:53 UTC 2013


Glen Barber <gjb at FreeBSD.org> wrote
  in <20130813175335.GR2432 at glenbarber.us>:

gj> On Tue, Aug 13, 2013 at 11:31:52AM -0600, Ian Lepore wrote:
gj> > I'm not even sure what $0 *should* expand to in a script that was
gj> > sourced in.  The manpage doesn't say anything meaningful to me about it.
gj> > Maybe it's a kind of "indeterminate results" thing which is pretty much
gj> > what we're seeing.
gj> >
gj>
gj> When the file is sourced, it should expand to the name of the file
gj> sourcing the file.

 It is sourced in the osreldate.h target in Makefile, so $0 will be
 /bin/sh.  Why $0 is used here in the first place?  The previous
 version used $SYSDIR and it looks more reasonable to me.

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20130814/d4d423ac/attachment.sig>


More information about the svn-src-head mailing list