From: Kevin Jackson Date: 2007-06-09T18:49:12+09:00 Subject: using ` and the bash source command Hi all, I have this code : `source ~/.bash_profile` As part of a script. But when this line executes I get a sh: command not found. This looks to me like ruby's ` is running /bin/sh instead of /bin/bash So a bit of searching on google and I discover that it's possible to do something like: %x{/bin/bash -c "source ~/.bash_profile;"} This doesn't fail with the command not found, but it doesn't actually source the file - so it's fairly useless. Does anyone have a workaround for getting ruby to exec the bash source command correctly? I think I've tried every combination in the docs and nothing seems to work. Thanks, Kev