-2

I ran into a strange problem that I do not understand. Why are multiple spaces not present in the output of the following command?

$ d='A      B'
$ echo $d
A B

Cyrus
  • 77,979
  • 13
  • 71
  • 125
user52366
  • 963
  • 1
  • 8
  • 17

1 Answers1

0

use in double quotes:

echo "$d"
tso
  • 4,404
  • 2
  • 19
  • 31