Menu

#130 Dir.exe command does not work as expected

freedos12
open
nobody
None
5
2020-01-21
2015-03-25
Erwin
No

In MS-Dos you can view all (for example) executables by typing "dir.exe", "dir .exe"or "dir .exe". In FreeDOS only "dir .exe" works.

Discussion

  • Erwin

    Erwin - 2015-03-25

    Oh seems I can't use the asterisk symbol. Let's use X as a replacement.

    In MS-Dos you can view all (for example) executables by typing "dir.exe", "dir .exe"or "dir X.exe". In FreeDOS only "dir X.exe" works.

     
  • Jim Hall

    Jim Hall - 2016-11-04

    Interesting bug. I wonder if this is because of FreeCOM command line parsing? For example, "dir.exe" would appear to be a request to run an external command called "dir.exe". That one seems obvious. I don't know that I'd call that one a FreeCOM bug.

    I wonder if "dir .exe" (space between "dir" command and ".exe" extension) is similarly interpreted as a request to run an external command called "dir .exe" (with space) or even "dir.exe" (no space).

    Not sure if that second one is a bug or not. Will need to reverify on FreeDOS 1.2 RC1. Similar example would be to use another internal command name, such as ECHO or REM.

     
  • Aleksandar Baros

    It is an incompatibility bug. I agree it is because command line parsing. dir.exe is not an external command, the same as cd.. (no space between cd and ..) is not an external command. Original MS DOS just make possible to type less.

     
  • Jim Hall

    Jim Hall - 2019-10-03
    • summary: Dir command does not work as expected --> Dir.exe command does not work as expected
    • Group: --> freedos12
     
  • Jim Hall

    Jim Hall - 2019-10-03

    edited title to be more accurate/searchable

     
  • Mohammed Sayed

    Mohammed Sayed - 2019-12-30

    I hope this will be fixed in FreeCOM 0.84 before FreeDOS 1.3 Final is released.

     
  • Mohammed Sayed

    Mohammed Sayed - 2020-01-21

    If it is NOT fixed in FreeDOS 1.3, that means that some old batch files may NOT work properly.
    Then, I may be compelled to switch back to MS-DOS.

     

Log in to post a comment.

MongoDB Logo MongoDB