Path: utzoo!attcan!uunet!peregrine!elroy!ames!mailrus!ukma!simon
From: simon@ms.uky.edu (Simon Gales)
Newsgroups: comp.binaries.ibm.pc.d
Subject: Re: BEWARE of changing the command line switch (switchar)
Keywords: switchar COMMAND.COM
Message-ID: <10629@s.ms.uky.edu>
Date: 29 Nov 88 00:26:06 GMT
References: <824@kksys.UUCP> <170@ocsmd.OCS.COM> <826@kksys.UUCP>
Reply-To: simon@ms.uky.edu (Simon Gales)
Distribution: na
Organization: U of Kentucky, Mathematical Sciences
Lines: 34

In article <826@kksys.UUCP> bird@kksys.UUCP (Mike Bird) writes:
>In article <170@ocsmd.OCS.COM>, bell@ocsmd.OCS.COM (John T. Bell) writes:
>> ... Also WordStar, and PibTerm have problems
>> whenever a new shell is invoked. I suspect that the PibTerm problem
>> may indicate that any thing compiled with T*rboPascal may break.
>> John T. Bell
>
>I have used TP 4.0 under the switched character, and it works fine and
>dandy.  Also, applications I've written parses the command line just fine.
>
>I don't know (yet) about TP 5.0, TC 2.0 or TASM 1.0, but they're on
>order...

The problem is not inherent to the language, but to how the program is
coded.  One technique of running a sub-process is by calling command.com
and letting it find the program (using the PATH) and run it.

In MS C, this can be done by:
	system("command.com /c progname");

Note that a '/c' is used, without checking to see if '/' is actually the
switch character.  This can be changed to '-c' if you have access to the
application's source (I have pibterm's if you want it).  This is done 
slightly differently in TP, but I believe that it's similar.

<-------------------------------------------------------------------------->
<---   Simon Gales@University of Ky                 263-2285/257-3597   --->
<---            [ simon@ms.uky.edu ]  |  [ simon@UKMA.BITNET ]          --->
<-------------------------------------------------------------------------->
-- 
<-------------------------------------------------------------------------->
<---   Simon Gales@University of Ky                 263-2285/257-3597   --->
<---            [ simon@ms.uky.edu ]  |  [ simon@UKMA.BITNET ]          --->
<-------------------------------------------------------------------------->