Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing argument from one script to another script

Status
Not open for further replies.

yy2

MIS
May 3, 2006
10
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top