TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: David Muir
from: Mike Bilow
date: 1996-02-12 02:16:20
subject: Executing a program?

David Muir wrote in a message to Mike Bilow:

 MB> I really never thought about it.  I developed MUTEX so long ago that
 MB> it antedates OS/2 Warp, and is actually a 16-bit program, althouh I
 MB> have modified it by adding a few command line switches as recently as
 MB> a year ago.  I seem to recall that COMSPEC was the DOS flavor and
 MB> OS2_SHELL was the OS/2 flavor.  It never occurred to me to revisit the
 MB> question. 

 DM>     If it makes you feel any better, I agree with you. OS/2
 DM> set me up with  OS2_SHELL pointing to CMD.EXE and COMSPEC
 DM> pointing to COMMAND.COM. This leads  me to believe that your
 DM> assumption is correct. That and the fact that a number  of
 DM> OS/2 doors I have, attempt to execute "comspec" which is not
 DM> defined in an  OS/2 session which effectivley results in no
 DM> OS shell available. (Both  variables are in my config.sys).
 DM> It would seem that IBM's intention was to  differentiate the
 DM> two variables for the two platforms.

I checked further, and it does seem that, officially, COMSPEC is supposed
to point to the DOS command processor, not the OS/2 command processor.  My
(OS/2 Warp Connect) system does see the COMSPEC environment variable
defined in an OS/2 session, and it is defined to point to CMD.EXE.  I am
fairly sure that, at some point in the past, I chose OS2_SHELL for a
reason, but I am not entirely sure I now know what it was.
 
-- Mike


--- 
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 323/107 170/400 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.