From: "Gerardo Santana Gómez Garrido" Date: 2007-10-14T12:21:52+09:00 Subject: Re: backquotes question 2007/10/13, Zouplaz : > Hello, I would like to know why > cmd = "/bin/df -H /dev/#{partition}" > used = `#{cmd}` > > works fine but this fails > used = `"/bin/df -H /dev/#{partition}"` > > with an OS error. > Let partition be "wd0a". In the first case, you're executing: /bin/df -H /dev/wd0a which the shell interprets correctly as a call the program /bin/df with the specified options and parameters. In the second case you're executing: "/bin/df -H /dev/wd0a" and the shell cannot find the program named "/bin/df -H /dev/wd0a" -- Gerardo Santana