From: "Jesús Gabriel y Galán" Date: 2010-01-27T18:23:24+09:00 Subject: Re: Why does `source .bashrc` complain "command not found"? On Wed, Jan 27, 2010 at 10:11 AM, Adam Akhtar wrote: > Is it just me or is this something that just cant be done? > > Ive found out that whenever system calls are made they open a child > shell process. And as soon as that call is finished the child shell is > closed and any changes that were made to the environment are lost with > it. > > But i should still be able to execute source .bashrc (even though the > changes will be lost as soon as that call finishes). Instead I get > command not found. How come? > > (Ubuntu 9.04 and Ruby 1.8x) irb(main):004:0> `echo $0` => "sh\n" and sh doesn't have a source command. I remember there was a question recently about changing the shell the backticks use, but I can't remember the answers, maybe you can search for it in the archives? Jesus.