Don't encourage people to add '.' to path. This can lead to subtle
issues in many common configurations.
This commit is contained in:
parent
0b6f258c68
commit
047a5c49a4
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=46406
1 changed files with 2 additions and 13 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue