OS/2, eCS & ArcaOS - Technical > Programming

again MeShell - binary distinguishing PM programs from cmd programs

<< < (2/3) > >>

Martin Vieregg:
OK. Then "window-compatible" is the only case where I do not need the START command, because fullscreen needs an own session.

Is there a case where this automatic behaviour should be omitted? (Is a user setting for this option necessary?)

Andreas Schnellbacher:
Yes, when the app should be started synchronously.

Martin Vieregg:
What about a leading special character like @ to omit the "start" functionatliy with a separate session? cmd.exe seems to ignore a leading @. Or does it have another meaning?

For example writing a cmd file where a text file is generated, then an editor is started to edit the textfile and then the batch file continues after saving the file and leaving the editor, indeed a possibility to turn off this functionality will be necessary.

Neil Waldhauer:
In cmd, the @ suppresses echo on the command line.


--- Code: ---rem without @
dir config.sys
rem with @
@dir config.sys
--- End code ---

Andreas Schnellbacher:

--- Quote from: Martin Vieregg on June 25, 2020, 12:17:50 am ---In my opinion, it is nervy to write "start" in front of the name of the PM program which is not running in the same session as cmd.exe. Otherwise MeShell switches to non prompt state (LED glows red).

--- End quote ---
Without 'start', you start an app synchronously. It's 'call' which you can omit. PM apps may behave different, but with 'start' you go sure that the app is started asynchronously.

As an example: ibmview.exe always starts asynchronously. There you don't need to specify 'start' in the command line. newview.exe needs the 'start', because otherwise it starts synchronously.

The text editor example for a synchronous start is correct. E.g. svn calls  a text editor on 'svn ci ...' to add a message. After saving the file and closing the window, control goes back to the waiting process with svn. BTW: E.g. 'tedit' and 'epm /m' can be used for this.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version