title: How to save files' names containing spaces to an array in bash?
body: <p>Let's say that there are 3 files in a directory: <code>file1</code>, <code>file 2</code>, <code>file    3</code>.
  I must use <code>ls</code> to get the file names and save them to an array. The problem is that, for example, bash sees the name <code>file 2</code> as two separate elements: <code>file</code> and <code>2</code>, while <code>file1</code> is properly interpreted.</p>
  
  <p>I understand that bash uses spaces as separators of array elements.
  Is it possible to change the separator temporally in the script to double quotes for example?
  It would solve the problem 'cause in that case it would simply be the matter of using ls with -Q option.</p>