From: Brian Candler Date: 2010-01-27T18:28:56+09:00 Subject: Re: Why does `source .bashrc` complain "command not found"? Adam Akhtar wrote: > Is it just me or is this something that just cant be done? ... > (Ubuntu 9.04 and Ruby 1.8x) In recent Ubuntu versions, the default shell is dash (/bin/sh is a link to /bin/dash), and 'source' is not a known keyword in that shell. To demonstrate: $ /bin/sh $ source /dev/null /bin/sh: source: not found $ exit The solution: use '.' instead of 'source'. dash is a POSIX-compatible shell without lots of non-standard bash extensions. If you really need to use bash-isms, then you should invoke bash explicitly. >> `/bin/bash -c 'source /dev/null'` => "" >> HTH, Brian. -- Posted via http://www.ruby-forum.com/.