title: execvp ls: cannot access ' ': No such file or directory
body: <p>When I try to execute a command like ls without arguments with execvp, I get the error: ls: cannot access '': No such file or directory.</p>
  
  <p>I dont know why, cause it seems like he is searching for a parameter ''.</p>
  
  <p>The code works like this:</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      char command[250] = "ls";              
      argvs[0] = command;
      argvs[1] = NULL;
      if (execvp( argvs[0], argvs) == -1 )
         perror("exec failed");
  
      return 0;
   }
  </code></pre>
  
  <p>Do I have to give as minimum one argument in execvp ? and set this to NULL or some other nullterminations?</p>