Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Aug 2013 04:36:25 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        gjb@FreeBSD.org
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, ian@FreeBSD.org
Subject:   Re: svn commit: r254217 - head/sys/conf
Message-ID:  <20130814.043625.854344935412527199.hrs@allbsd.org>
In-Reply-To: <20130813175335.GR2432@glenbarber.us>
References:  <20130813171302.GQ2432@glenbarber.us> <1376415112.3320.229.camel@revolution.hippie.lan> <20130813175335.GR2432@glenbarber.us>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Wed_Aug_14_04_36_25_2013_914)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Glen Barber <gjb@FreeBSD.org> wrote
  in <20130813175335.GR2432@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

----Security_Multipart(Wed_Aug_14_04_36_25_2013_914)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (FreeBSD)

iEYEABECAAYFAlIKirkACgkQTyzT2CeTzy2WAQCgjFEeNN3Gh2QLjYaRlyZU2/Qw
jaIAnjqWuSDq0Ptq9HgolvBV6IlqmnF4
=quWS
-----END PGP SIGNATURE-----

----Security_Multipart(Wed_Aug_14_04_36_25_2013_914)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130814.043625.854344935412527199.hrs>