Don't encourage people to add '.' to path. This can lead to subtle

issues in many common configurations.
This commit is contained in:
Eitan Adler 2015-04-01 06:25:57 +00:00
parent 0b6f258c68
commit 047a5c49a4
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=46406

View file

@ -783,21 +783,10 @@ int main() {
<para>Unlike &ms-dos;, &unix; does not
look in the current directory when it is trying to find
out which executable you want it to run, unless you tell
it to. Either type <command>./foobar</command>, which
it to. Type <command>./foobar</command>, which
means <quote>run the file called
<filename>foobar</filename> in the current
directory</quote>, or change your <envar>PATH</envar>
environment
variable so that it looks something like</para>
<informalexample>
<screen>bin:/usr/bin:/usr/local/bin:.
</screen>
</informalexample>
<para>The dot at the end means <quote>look in the current
directory if it is not in any of the
others</quote>.</para>
directory.</quote></para>
</answer>
</qandaentry>