SUMMARY: RE: shell variables

From: Hoai TRAN <Htran_at_freightcorp.com.au>
Date: Fri, 28 Jul 2000 11:57:08 +1000

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

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT