shell: remove useless copying of input string