Kernel#`` not working in my IRB

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

kirti@kirti-Aspire-5733Z:~$ irb --simple-prompt

`pwd`

=> "/home/kirti\n"

var = `cd 'ruby'`

=> ""

var

=> ""

`pwd`

=> "/home/kirti\n"

Because Kernel#` is a fork per command scenario not a session. `cd 'ruby' && pwd`

Jordon Bedwell wrote in post #1120860:

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

Maybe you want Dir.chdir?