From: Zouplaz Date: 2007-10-16T21:00:15+09:00 Subject: Re: backquotes question le 14/10/2007 05:21, Gerardo Santana G�mez Garrido nous a dit: > 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" > Thanks for the hint (and others posters too) !