[comp.lang.pascal] TURBO 5.5 .vs. MKS sh

mark@siva.UUCP (Mark Marsh) (12/04/89)

I have recently purchaced TURBO Pascal 5.5 and find an annoying 'feature'
to their .exe files (I think). This involves two programs --
  1) MKS sh (a DOS version on the popular *nix shell - very nice!)
  2) The compiled output of TURBO Pascal

The facts as I know them:
1) executables compiled by TURBO execute under command.com
2) executables compiled by TURBO _do_not_ execute under sh
3) sh will execute any other .com .exe and .bat files  (including the 
    including the executables in the TURBO distribution!!??)

My questions:
1) Why is this?
2) Is there known way to get these programs to run under sh (i.e. a compiler
	 switch, etc.)?

My defence:
 Why yes, I have RTFM -- I found nothing. 

-- 
mark@siva -or- {ames!pacbell!sactoh0}||{ucbvax!ucdavis!csusac!unify}!siva!mark

leonard@bucket.UUCP (Leonard Erickson) (12/10/89)

mark@siva.UUCP (Mark Marsh) writes:

>I have recently purchaced TURBO Pascal 5.5 and find an annoying 'feature'
>to their .exe files (I think). This involves two programs --
>  1) MKS sh (a DOS version on the popular *nix shell - very nice!)
>  2) The compiled output of TURBO Pascal

>The facts as I know them:
>1) executables compiled by TURBO execute under command.com
>2) executables compiled by TURBO _do_not_ execute under sh

Could you be a bit more specific? "do not execute" doesn't tell me
much. Does the system crash? Do you get an error message? Or do you
type the command and the system immediately returns a prompt?

>3) sh will execute any other .com .exe and .bat files  (including the 
>    including the executables in the TURBO distribution!!??)

>My questions:
>1) Why is this?

I've got no idea, but my best guess is that one of the "built in" units
disagrees with sh. Most likely candidates are CRT, DOS, and (God Help you!)
SYSTEM.

Try writing a short program that doesn't use anything from CRT, and see if it 
runs. If it does, then you have two alternatives. First, you can buy the 
source code to the units for $150 from Borland. That would let you patch
any problems. Second, you can buy a copy of Turbo Professional and use their 
replacement for the CRT unit. It comes with source.
-- 
Leonard Erickson		...!tektronix!reed!percival!bucket!leonard
CIS: [70465,203]
"I'm all in favor of keeping dangerous weapons out of the hands of fools.
Let's start with typewriters." -- Solomon Short