Just started testing bash out and ran across an issue where if a file is externally linked ie ln -e ONETSTAT /bin/netsat bash fails to find the file
-bash: netstat: command not found
CARROS1:/home/carros1: >ls -la /bin | grep -i netstat
erwxrwxrwx 1 TCPIPST OMVSGRP 8 Jul 23 2013 netstat -> ONETSTAT
lrwxrwxrwx 1 TCPIPST OMVSGRP 29 Jul 23 2013 onetstat -> …/usr/lpp/tcpip/bin/onetstat
now if I create a symbolic like in say $HOME/bin
lrwxrwxrwx 1 PSC050 OMVSGRP 12 Aug 2 12:12 netstat -> /bin/netstat
this it find but does not run
it is killed instead
on the console I have this
BPXP028I SPAWN OR EXEC ERROR FOR FILE PATH ./netstat DEVICE ID 169 957
INODE 22892. THE ASSOCIATED MVS MEMBER NAME IS ONETSTAT.
SYS1.SEZALOAD which is where ONETSTAT resides is LINKLIST’d and in LPA. So it should be finding it
If I add a STEPLIP in OMVS to SYS1.SEZALOAD it works fine.
I do not have this behavior with /bin/sh or /bin/tcsh
does anyone else have this behavior?
I’d like to find out if this is a bug in bash or in our environement