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.
Don't you have to 'hash -r' after moving cached executables?te:
On Thu, Nov 27, 2025 at 6:00=E2=80=AFPM np <dev@nicolas-provost=2Efr> wro=
henHi,
for example, given a script /usr/local/bin/a=2Esh which outputs "ok", t=
TH haslogin to a console as root (for simplicity):
root# a=2Esh
ok
root# mv /usr/local/bin/a=2Esh /usr/bin
root# a=2Esh
On 15=2E0-RC4, sh will report here that a=2Esh is not found, even if PA=
our ?/usr/bin=2E But csh will find it=2E
On 13=2E3 the script is found normally (did not check it on 14=2Ex)=2E
Same thing for whatever program you want=2E Can you confirm this behavi=
Cordialement,
N=2EP=2E
--=20
brandon s allbery kf8nh
allbery=2Eb@gmail=2Ecom
Probably but I was surprised this is not the same behaviour under 13.x. O=r
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 =C3=A9crit :e:
Don't you have to 'hash -r' after moving cached executables?
On Thu, Nov 27, 2025 at 6:00=E2=80=AFPM np <dev@nicolas-provost.fr> wrot=
n
Hi,
for example, given a script /usr/local/bin/a.sh which outputs "ok", the=
rlogin 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 behaviou=
?
Cordialement,
N.P.
It's a POSIX-ism=2E I wasn't paying attention during the 13=2Ex days (las=t time
I did fbsd was around 5-CURRENT) but I suspect someone pushed for POSIX >compliance=2Ete:
On Thu, Nov 27, 2025 at 6:12=E2=80=AFPM np <dev@nicolas-provost=2Efr> wro=
thenProbably but I was surprised this is not the same behaviour under 13=2E= x=2E 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=2Eb@gmail=2Ecom> a =C3=A9crit :
Don't you have to 'hash -r' after moving cached executables?
On Thu, Nov 27, 2025 at 6:00=E2=80=AFPM np <dev@nicolas-provost=2Efr> = wrote:
Hi,
for example, given a script /usr/local/bin/a=2Esh which outputs "ok",=
=2Elogin to a console as root (for simplicity):
root# a=2Esh
ok
root# mv /usr/local/bin/a=2Esh /usr/bin
root# a=2Esh
On 15=2E0-RC4, sh will report here that a=2Esh is not found, even if = PATH
has /usr/bin=2E But csh will find it=2E
On 13=2E3 the script is found normally (did not check it on 14=2Ex)=
Same thing for whatever program you want=2E Can you confirm this beha= viour
?
Cordialement,
N=2EP=2E
--=20
brandon s allbery kf8nh
allbery=2Eb@gmail=2Ecom
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 59 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 05:50:48 |
| Calls: | 810 |
| Files: | 1,287 |
| D/L today: |
7 files (10,221K bytes) |
| Messages: | 204,995 |