http://www.perlmonks.org?node_id=1011431


in reply to Re: Automating a shell session: cd does not work
in thread Automating a shell session: cd does not work

OK, it was definitely my fault. I keep telling myself I need to stop assuming the modules I use are at fault.

I was doing $input = "new command\n" instead of $input .= "new command\n", so I guess in some cases existing input got clobbered before being pumped into the harness.

Thanks again!