in reply to Environment discovery under Linux

Although I've not seen the shell script in question, I'm curious to know if it might be more efficient to simply eliminate the bashisms within it and thus avoid all of this hoop-jumping.