title: How to create a script whith saves a file with spaces in ZSH
body: <p>I'm trying to use the following script in my zsh shell (I found that code <a href="https://github.com/bevacqua/dotfiles/blob/0ba35a82c9d876a92e9841f96f6a2d5da5e345c1/zsh/aliases#L4-L10" rel="nofollow">here</a>):</p>
  
  <pre><code># some todo.sh file
  IFS_OLD="$IFS"
  IFS=$'\n'
  touch $(echo ~/Área\ de\ Trabalho/$@)
  IFS="$IFS_OLD"
  </code></pre>
  
  <p>The problem is, when I run this script using zsh, like <code>todo.sh alimentar o cachorro</code>, the file is saved with the name <em>alime tar o cachorro</em>, but it works fine in bash. I know it may be a silly error, but I have no idea how to fix this.</p>
  
  <p>Why I need it? My desktop is my todo list, it has only that - empty files whose title is the description of the task. It works best for me because my desktop is <strong>always</strong> clean, it only has my tasks. For example:</p>
  
  <pre><code>$ ls ~/Área\ de\ Trabalho/
  # nothing, all tasks done
  
  $ todo comprar leite
  $ ls ~/Área\ de\ Trabalho/
  total 0
  -rw-rw-r-- 1 lsmagalhaes lsmagalhaes 0 Fev  5 20:28 comprar leite
  
  $ todo comprar arroz
  $ ls ~/Área\ de\ Trabalho/
  total 0
  -rw-rw-r-- 1 lsmagalhaes lsmagalhaes 0 Fev  5 20:28 comprar leite
  -rw-rw-r-- 1 lsmagalhaes lsmagalhaes 0 Fev  5 20:29 comprar arroz
  
  $ todo alimentar o cachorro
  $ ls ~/Área\ de\ Trabalho/
  total 0
  -rw-rw-r-- 1 lsmagalhaes lsmagalhaes 0 Fev  5 20:28 comprar leite
  -rw-rw-r-- 1 lsmagalhaes lsmagalhaes 0 Fev  5 20:29 comprar arroz
  -rw-rw-r-- 1 lsmagalhaes lsmagalhaes 0 Fev  5 20:30 alime tar o cachorro  # BUG!
  </code></pre>
  
  <p>Simply put, the command should save a file with name <code>alimentar o cachorro</code>, but instead it saves <code>alime tar o cachorro</code>.</p>