Thanks to Herman Fredriksson and Crhis Parry and Ian.
The solution is to echo the variable inside "".
Regards,
Hoai
Original Post:
Can anyone tell me why this happens:
# test="test 2" #note there are two spaces between test and 2
# echo $test # this will show test 2 (somehow compressing the string
to single space)
I do not want the string to be compressed, how can I go about doing that?
Thanks.
Regards,
Hoai
The information contained in this e mail is confidential and intended
only for the person to whom it is addressed. Other people may not
copy, use, disclose or distribute this information. If this message
has been sent to you in error, could you please e mail the sender
and destroy the message. Thank you.
The information contained in this e-mail is confidential and intended
only for the person to whom it is addressed. Other people may not
copy, use, disclose or distribute this information. If this message
has been sent to you in error, could you please e-mail the sender
and destroy the message. Thank you.
Received on Fri Jul 28 2000 - 01:58:46 NZST