"Peter B. Ensch" wrote:
> 
<snip>
> The problem is that ENV['PATH'] doesn't contain what I expect. When I
> run env in
> my c shell, I get a line like this:
> 
> PATH=/home/pensch/apps/usr/local/bin:/home/pensch/apps/htmldoc/bin:/home/pensch/bin:/apps/java/j2re1.4.1_01/bin....
> 
> so splitting on ':' I feel should get the paths I want. However, running
> the script
> on Solaris w/ C shell, ENV['PATH'] doesn't contain this string
> 
> puts ENV['PATH'] prints '/home/pensch'
> 
> The same script on my Linux box (bash) gets the expected result.
> 
> I'm stumped. Any ideas?
> P

As to why your path appears to be incomplete I couldn't tell you. 
However, what you're trying to accomplish sounds like the "which"
command.  You can find File.which in the "ptools" package on the RAA, or
on RubyGarden as "FileWhich".

Regards,

Dan