Bad command or file name

Source: Wikipedia, the free encyclopedia.
Screenshot of the error in MS-DOS

"Bad command or file name" is a common and ambiguous error message in MS-DOS.[1]

foo" is replaced by the word causing error):[3]

"foo" is not recognized as an internal or external command,
operable program or batch file.

Some early Unix shells produced the equally cryptic "foo: no such file or directory" again accurately describing what is wrong but confusing users. Most modern shells produce an error message similar to "foo: command not found".[4][5][6]

See also

References

  1. MSDN. Microsoft. 20 February 2014. Archived
    from the original on June 30, 2018. Retrieved March 8, 2015.
  2. ^ "bash - execute_cmd.c". git.savannah.gnu.org. Retrieved 2022-04-12.
  3. ^ "dash - main.c". git.kernel.org. Archived from the original on 2022-04-12. Retrieved 2022-04-12.
  4. ^ "zsh - exec.c". GitHub. Archived from the original on 2022-05-21. Retrieved 2022-04-12.