Need help with spec. characters.

Hi.,
I need transfer as parameter into shell script some spec. characters, for example " or ' or & or \ at the end of second parameter. (this parameter used as changed password).
How I can transfer it into shell script.
Thanks Staas,.

Can you provide an example?

Try surrounding the parameter with single quotes.

Either escape that character or as noted put it inside single ticks.

Hi.
Thanks for quick answers.
Image, that parameter (password) is transferred into script as 123456as' or 123456as" or 123456as&.
' or '' or & or other char. are caused problem with receiving as parameter.
Thanks and wait for Yous responses.
Thanks Staas.

The below code just accepts and prints including special characters.
special.ksh
#!/bin/ksh
read A
echo $A

Use the code as below.

$ "special.ksh"<< EOF
>>123456as'
>>EOF
123456as'