我知道 bash 内部命令hash以及如何使用hash -d或hash -r忘记记住的位置。有没有办法在bash“缓存未命中”时指示自动执行此操作,即当记住的位置消失时 ( no such file or directory)bash会清除记住的位置并重试?
hash
hash -d
hash -r
bash
no such file or directory
linux bash
bash ×1
linux ×1