The "rehash" command is not supported by every shell.
Use the "hash -r" as additional example (sh and bash shells) zsh shell support both methods, no need to include it into example If someone personally like this shell, he can put it back :)
This commit is contained in:
parent
83604e3476
commit
6f64961abc
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=23544
1 changed files with 5 additions and 4 deletions
|
|
@ -880,10 +880,11 @@ docbook =
|
|||
commands. If you are using one of these shells, you might
|
||||
have to use the <command>rehash</command> command after
|
||||
installing a port, before the newly installed commands can
|
||||
be used. This is true for both shells that are part of
|
||||
the base-system (such as <command>tcsh</command>) and
|
||||
shells that are available as ports (for instance,
|
||||
<filename role="package">shells/zsh</filename>).</para>
|
||||
be used. This command will work for shells like
|
||||
<command>tcsh</command>. Use the <command>hash -r</command>
|
||||
command for shells like <command>sh</command> or <filename
|
||||
role="package">shells/bash</filename>. Look at
|
||||
documentation for your shell for more information.</para>
|
||||
</note>
|
||||
|
||||
<note>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue