shell: remove useless copying of input string
Merge pull request #678 from mehlis/shell-no-copy

shell: remove useless copying of input string