> 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: echo $PATH | tr : \\n | while read dir; do if [ -x $dir/perl ]; then echo $dir/perl; break; fi; done
- Re: odd search order looking for perl? Bruce Ingalls
- Re: odd search order looking for perl? Chris Green
- Re: odd search order looking for perl? Kai Großjohann
- Re: odd search order looking for perl? Chris Green
- Re: odd search order looking for perl? Kai Großjohann
- Re: odd search order looking for perl? Chris Green
- Re: odd search order looking for perl? Bruce Ingalls
- Re: odd search order looking for perl? Kai Großjohann
- Re: odd search order looking for perl? Bruce Ingalls
- Re: odd search order looking for perl? Kai Großjohann
- Re: odd search order looking for perl? Francesco Potorti`
- Re: odd search order looking for perl? Pete Forman
- Re: odd search order looking for ... Daniel Pittman
- Re: odd search order looking for perl? Kai Großjohann
- Re: odd search order looking for ... Francesco Potorti`
- Re: odd search order looking for ... Edward J. Sabol
- Re: odd search order looking for ... Kai Großjohann
- Re: odd search order looking for ... Francesco Potorti`
- Re: odd search order looking for ... Kai Großjohann
- Re: odd search order looking for ... Francesco Potorti`
- Re: odd search order looking for ... Kai Großjohann