Если вы используете текущую версию tcsh
(в настоящее время у меня есть tcsh 6.20.00 (Astron) 2016-11-24
), вы можете set autorehash
(например, в ~/.cshrc
или в приглашении), чтобы включить автоматическое повторное сканирование `path каталоги, если нужно (например, Bash). По справочной странице по tcsh:
autorehash (+)
If set, the internal hash table of the contents of the directories in the
path variable will be recomputed if a command is not found in the hash table.
In addition, the list of available commands will be rebuilt for each command
completion or spelling correction attempt if set to `complete' or `correct'
respectively; if set to `always', this will be done for both cases.
Хотя есть некоторые крайние случаи, как отмечено в разделе команды rehash
на справочной странице tcsh:
rehash Causes the internal hash table of the contents of the directories
in the path variable to be recomputed.
...
With autorehash, a new command will be found automatically, except
in the special case where another command of the same name
which is located in a different directory already exists in the
hash table. Also flushes the cache of home directories built
by tilde expansion.