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
  • 84,225
  • 14
  • 89
  • 153
Alp4ga
  • 115
  • 1
  • 1
  • 10

0 Answers0