Path: utzoo!attcan!utgpu!watmath!mks!wheels From: wheels@mks.UUCP (Gerry Wheeler) Newsgroups: comp.sys.ibm.pc Subject: Re: MKS Toolkit Question Keywords: Turbo Pascal 4.0 under the MKS shell Message-ID: <545@mks.UUCP> Date: 9 Nov 88 20:45:48 GMT References: <167@ssp2.idca.tds.philips.nl> Organization: Mortice Kern Systems, Waterloo, Ont. Lines: 46 In article <167@ssp2.idca.tds.philips.nl>, mbrands@idca.tds.PHILIPS.nl (Manfred Brands) writes: > When I try to compile a program TPC is not able to find its configuration > file. Normally the compiler searches for it in de same directory as the > executable is in, using argv[0] on DOS 3.0 and up. > The problem is, I suppose, that TPC only recognizes the backslash as a > path separator and the MKS shell ALWAYS uses forward slashes. Yes, the shell uses a forward slash when appending the command name to a part of the search path. So, even if your path is something like "\bin;\dos", argv[0] will look like "\bin/foo". > Ok, this problem can be solved by making an alias for TPC in which the > options from the configuration file are given as command line options. Or, make an alias for TPC which contains the full pathname using backslashes. That way, the shell will not have to use the PATH variable at all. For example, try something like: alias tpc="\bin\tpc.exe" > Is it possible to tell the MKS shell to use backslashes instead, so that there > is no compatibility problem with existing DOS programs ? Sorry, no. > The program generated by TPC is NOT executable under the MKS shell. > > When I type: > program > > I get the message: > program: Not executable I haven't heard about this before. Can you email me a copy of a small executable that shows this problem? -- Gerry Wheeler Phone: (519)884-2251 Mortice Kern Systems Inc. UUCP: uunet!watmath!mks!wheels 35 King St. North BIX: join mks Waterloo, Ontario N2J 2W9 CompuServe: 73260,1043 -- Gerry Wheeler Phone: (519)884-2251 Mortice Kern Systems Inc. UUCP: uunet!watmath!mks!wheels 35 King St. North BIX: join mks Waterloo, Ontario N2J 2W9 CompuServe: 73260,1043