joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.82k stars 383 forks source link

Bug or Correct ? Error using the "|" character with [autoexec] ECHO #2784

Closed rebb closed 3 years ago

rebb commented 3 years ago

Describe the bug Using the "|" character inside the [autoexec] block with ECHO seems to make DosBox think it's a file piping action. In this case it was just a visual element.

So i'm unsure if this is a bug or actually also how real DOS would react to encountering this character in an ECHO line ? Reporting it just in case.

To Reproduce Steps to reproduce the behavior:

  1. Add something like "ECHO | Hi |" to the [autoexec] block of a .conf file that will be used
  2. Launch DosBox
  3. See error

Expected behavior Unsure

Screenshots dosbox_x_error

Environment (please complete the following information):

yxmline commented 3 years ago

Please set the temp environment variable in the [autoexec] first

rebb commented 3 years ago

What would i set temp to ?

This is pretty much directly copied from an existing .conf file that ships with the GoG Ultima Underworld. It doesn't set any environment variables. This is used to display the pre-game DOS menu for it. But i assume the default DosBox that comes with GoG games doesn't support the Piping operator ? Maybe i'm wrong.

It's not a big issue - just wondering if normal DOS would do this too when trying to use "|" in an ECHO statement.

rebb commented 3 years ago

Ok, never mind, it seems this was a problem of using a text-viewer that converts the ANSI "double line" character into a "|", and i copied from that one into a new file.

Another editor displays the ANSI .. well at least not like an "|". Sorry about that.