From: Josh Cheek Date: 2013-07-02T23:26:00+09:00 Subject: Re: Backtick probleme --001a11c26a3095a9e404e0881ffc Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jul 2, 2013 at 8:54 AM, xcoder Blue_fox wrote: > Hey guys i got a probleme with this code : > out = `ls` > puts out > > When i run it i got : > C:/Users/Xcoder/Documents/NetBeansProjects/Learnerr/lib/Sys.rb:1:in ``': > No such > file or directory - ls (Errno::ENOENT) > from > C:/Users/Xcoder/Documents/NetBeansProjects/Learnerr/lib/Sys.rb:1:in > `
' > Thanks for help ! > > If your computer doesn't have an ls command, you can do the same thing from Ruby with Dir.pwd -Josh --001a11c26a3095a9e404e0881ffc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Jul 2, 2013 at 8:54 AM, xcoder Blue_fox <lists@ruby-forum.com> wrote:
Hey guys i got a probleme with this code :
out =3D `ls`
puts out

When i run it i got :
C:/Users/Xcoder/Documents/NetBeansProjects/Learnerr/lib/Sys.rb:1:in ``'= :
No such
=A0file or directory - ls (Errno::ENOENT)
=A0 =A0 =A0 =A0 from
C:/Users/Xcoder/Documents/NetBeansProjects/Learnerr/lib/Sys.rb:1:in
=A0`<main>'
Thanks for help !


If your computer doesn't have an ls command, you= can do the same thing from Ruby with Dir.pwd

-Jos= h
--001a11c26a3095a9e404e0881ffc--