Thx Christoph,
Although printf is a much better function for my script, you don't answer at all to my problem. What I need is a way to make the script work in the following situation:
Code:
~# cat /usr/local/bin/squote
[[ -z "$@" ]] && printf "No input\n" || printf "Input: %q\n" "$@"
~# echo "h's m" | squote
No input