4

Hi I write a scrpit in bash and I have a problem with the empty string by exemple I have this array

array=('Hello' '' 'World')                                                                    
echo ${array[@]}

and my output is

Hello (one space) World

and not

Hello (two space) World

Someone know why ?

EDIT:

I found sorry I need to use "" when I echo

Cyrus
  • 77,979
  • 13
  • 71
  • 125
Alp4ga
  • 105
  • 1
  • 1
  • 10

0 Answers0