I don't understand your complaint about behavior of # in rsh commands. Shouldn't the command be interpreted the same way that it would be were you to log in on the remote machine and type the command by hand? # is a comment character under appropriate circumstances (not in "lpr -#2").