Hi,

I am just wonder what is a proper way to pass in a variable which content control character e.g ^M from one script to another script.

e.g
Script A
---------
var_a='YYY^M'

procA(var_a)

Script B
--------
function procA
{
....
Do while...
inpt1=$1
echo $inpt
....
}

However, in my script B, the echo $inpt does not printed the correct result as 'YYY^M'.

Anyone has any idea on the above?