Francesco Potorti` writes:
 > > I was afraid that this which-like command might be known by
 > > various names on various systems, and the output might vary.
 > 
 > I tried this, and I think it should work on any bourne shell:

Yes but not for any tr.  Try this change

 > echo $PATH |
 >  tr : \\n |

    tr : \\012 |

 >  while read dir;
 >  do if [ -x $dir/perl ];
 >  then echo $dir/perl; break;
 >  fi; done

-- 
Pete Forman                 -./\.- Disclaimer: This post is originated
WesternGeco                   -./\.-  by myself and does not represent
[EMAIL PROTECTED]     -./\.-  opinion of Schlumberger, Baker
http://www.crosswinds.net/~petef  -./\.-  Hughes or their divisions.

Reply via email to