update rshell with correct dup/pipe structure