VOGONS


Command line length bug

Topic actions

First post, by Deltacron

User metadata
Rank Newbie
Rank
Newbie

In DOS, the length of the command line is limited to 127 characters (via the 0Ah int 21 function). This is done due to the fact that 127 bytes are allocated for it in the PSP. In DOSbox, the user can enter commands of unlimited length with unpredictable consequences.

Reply 1 of 1, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Longer command lines are accepted by the internal shell, which can handle them -- and this is very useful for multi-image mount commands that can be long indeed. However, the command tail that is copied into the PSP is predictably clipped to what can fit when executing DOS programs.