title: Fish shell: test: Missing argument at index 2
body: <p>I have the following function:</p>
  
  <pre><code>function is_file
    set file $argv[1]
  
    if test ‐f $file
      return 0
    else
      return 1
    end
  end
  </code></pre>
  
  <p>However when calling it:</p>
  
  <pre><code>is_file ~/.vimrc
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>test: Missing argument at index 2
  </code></pre>
  
  <p>What am I missing?  </p>