--fdj2RfSjLxBAspz7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jun 18, 2011 at 04:45:56AM +0900, Matthew K. Williams wrote:
> On Sat, 18 Jun 2011, Chad Perrin wrote:
> >
> >Is there a "better" way to specify a default config file location than
> >this?
> >
> >   File.expand_path('~') + "/#{filename}"
>=20
> Depending on the shell, '~' may not be defined.  $HOME is a better
> choice generally.

I take it you mean the above should be changed to this:

    ENV['HOME'] + "/#{filename}"

Is that what you mean?

You make a good point about tilde expansion.  Thank you.

--=20
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

--fdj2RfSjLxBAspz7
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAk37rQwACgkQ9mn/Pj01uKWWQQCgusAOdMbV2/26ff9DbQaWPPkG
brwAn2evxTYrY7qre/ZBJY31/BaR/G05
=Snuo
-----END PGP SIGNATURE-----

--fdj2RfSjLxBAspz7--

On Sat, Jun 18, 2011 at 04:45:56AM +0900, Matthew K. Williams wrote:
> On Sat, 18 Jun 2011, Chad Perrin wrote:
> >
> >Is there a "better" way to specify a default config file location than
> >this?
> >
> >   File.expand_path('~') + "/#{filename}"
>=20
> Depending on the shell, '~' may not be defined.  $HOME is a better
> choice generally.

I take it you mean the above should be changed to this:

    ENV['HOME'] + "/#{filename}"

Is that what you mean?

You make a good point about tilde expansion.  Thank you.

--=20
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAk37rQwACgkQ9mn/Pj01uKWWQQCgusAOdMbV2/26ff9DbQaWPPkG
brwAn2evxTYrY7qre/ZBJY31/BaR/G05
=Snuo
-----END PGP SIGNATURE-----