Re: 15.0-RC4: sh failing to find a file
- Reply: Brandon Allbery : "Re: 15.0-RC4: sh failing to find a file"
- In reply to: Brandon Allbery : "Re: 15.0-RC4: sh failing to find a file"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Nov 2025 23:12:19 UTC
Probably but I was surprised this is not the same behaviour under 13.x. Or a default option has changed in sh ? Somewhat strange that a non-existing file does not reset the hash table automatically! Le 28 novembre 2025 00:02:05 GMT+01:00, Brandon Allbery <allbery.b@gmail.com> a écrit : >Don't you have to 'hash -r' after moving cached executables? > >On Thu, Nov 27, 2025 at 6:00 PM np <dev@nicolas-provost.fr> wrote: > >> Hi, >> >> for example, given a script /usr/local/bin/a.sh which outputs "ok", then >> login to a console as root (for simplicity): >> >> root# a.sh >> ok >> root# mv /usr/local/bin/a.sh /usr/bin >> root# a.sh >> >> On 15.0-RC4, sh will report here that a.sh is not found, even if PATH has >> /usr/bin. But csh will find it. >> >> On 13.3 the script is found normally (did not check it on 14.x). >> >> Same thing for whatever program you want. Can you confirm this behaviour ? >> >> Cordialement, >> N.P. >> > > >-- >brandon s allbery kf8nh >allbery.b@gmail.com