update rshell.cpp