On 06/09/2014 01:12 PM, Mark Whidby wrote:
On Mon, 2014-06-09 at 13:09 -0700, ToddAndMargo wrote:
Hi All,

What am I missing here?  Where did all my spaces go?
Is this $IFS's doing?

I can substitute dots for spaces, so I don't have to
have a solution, I'm just curious what went wrong.

Many thanks,
-T

$ A=abc
B=xyz
C="${A}    ${B}"

echo $C
abc xyz

You need to enclose $C in quotes:

echo "$C"


Hi Mark,

   Oh now that is embarrassing.  Thank you!

-T


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to