Rewrite of sshell