There is an executable in my path that I believe is a perl script.
>$scriptname
$outputofscript
but
>which $scriptname
which: 0652-141 There is no $scriptname in $path
and the path it prints is the same that echo $PATH gives (except space delimited rather than colon).
Running ksh again does not appear to change my path, but now the script is not found.
This is as a normal user running ksh on AIX 6.1 over telnet (yeah, I know).

whereiswork in both cases? If yes,$PATHis somehow changed. – faif Mar 28 '11 at 7:58