On 1 Dec 2008, at 16:04, Alain Matthes wrote:
[...] this idea
ENV['PATH'] = %x{sh -c '. "$BASH_ENV"; echo $PATH'}
I put this line in the file require_cmd.rb and with this line, I can compile without setting the PATH in the Shell Variables.
I would like to know if this idea is fine or if it' dangerous ...
It is unreliable and may just as well break things.
Current edge release should have a good fix for PATH and “getting it from Terminal” when the required command is not found.