What I want to do is the following:
stdin into variable A
Yes it works for me too. Thanks.
myvar=`cat`
is the same as
myvar=`cat /dev/stdin`
Well yes. From the bash man page:
Enclosing characters in double quotes preserves the literal value of all characters within the quotes, with the exception of $, `, \, and, when history expansion is enabled, !. The characters $ and ` retain their special meaning within double quotes.