title: illegal option -- ? when copying
body: <p>I have just started to work on a Imac macOS HighSierra and when trying to copy some files I keep getting the error:</p>
  <p>I just made a <code>test</code> directory to clarify the issue:</p>
  <p>The directory <code>test</code> contains:</p>
  <pre><code>file1.txt file2.txt folder1
  </code></pre>
  <p>Using the following command in the parent directory:</p>
  <pre><code>cp -R test/ .
  </code></pre>
  <p>I get this error:</p>
  <pre><code>cp: illegal option -- ?
  usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
     cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
  </code></pre>
  <p>According to manual page for cp, the -R argument means:</p>
  <p>If source_file designates a directory, cp copies the directory and the entire subtree connected at that point.  If the source_file ends in a /, the contents of the
  directory are copied rather than the directory itself.</p>
  <p>Any suggestions as to why I get the error ?</p>
  <p>I have bash version version 3.2.57(1)-release</p>
  <p>----UPDATE---</p>
  <p>According to comments to this issue, I provide some additional information:</p>
  <ol>
  <li><code>which cp</code> returns <code>/bin/cp</code></li>
  <li><code>echo cp -R test/ .</code>returns <code>cp -R test/ .</code></li>
  <li><code>set | grep cp</code> returns nothing</li>
  <li><code>cp --version</code> and <code>cp --help</code> returns <code>cp: illegal option -- ? usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory</code></li>
  <li><code>man cp</code> returns the manual page but it doesn't seem to depict anything about the version except <code>BSD                            February 23, 2005                           BSD</code></li>
  </ol>