bug-bash
[Top][All Lists]
Advanced

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

Re: bash 4: source does not search current dir


From: Eric Blake
Subject: Re: bash 4: source does not search current dir
Date: Sat, 18 Jul 2009 13:46:28 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Denys Vlasenko on 7/18/2009 11:48 AM:
> Hi,
> 
> I assume . command does not search current directory anymore
> in bash 4 for a reason. Perhaps it is specified by relevant
> standard, although I did not find it.

It is specified by POSIX:
http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#dot

You can add . to your PATH (probably smarter at the end, not the
beginning) if you want to find scripts without anchoring them with a
leading './'.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpiJpQACgkQ84KuGfSFAYDQzQCfcKRLHuLJ8qGvXST63r4haGA+
QkQAoLj+VbtyXr44VAp8dOOgYZbvXKWu
=+GfJ
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]