Kernel#`` not working in my IRB

I tried Kernel#`` but not working cd command.

[email protected]:~$ irb --simple-prompt

pwd
=> “/home/kirti\n”

var = cd 'ruby'
=> “”

var
=> “”

pwd
=> “/home/kirti\n”

On Fri, Sep 6, 2013 at 2:15 PM, Love U Ruby [email protected]
wrote:

=> “/home/kirti\n”
Because Kernel#is a fork per command scenario not a session.cd
‘ruby’ && pwd`

Jordon B. wrote in post #1120860:

On Fri, Sep 6, 2013 at 2:15 PM, Love U Ruby [email protected]
wrote:

=> “/home/kirti\n”
Because Kernel#is a fork per command scenario not a session.cd
‘ruby’ && pwd`

fork per command means? Could you please clarify this ? I am using it
first time.

It worked perfectly. It created a new process, that process changed its
directory, and then exited :wink:

Maybe you want Dir.chdir?

On Sep 6, 2013, at 1:15 PM, Love U Ruby [email protected] wrote:

=> “/home/kirti\n”
For more options, visit https://groups.google.com/groups/opt_out.


Scott R.
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs