Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!phri!greenber From: greenber@phri.UUCP (Ross Greenberg) Newsgroups: net.micro.pc,net.micro.ti Subject: Re: Help with SWITCHAR Message-ID: <2248@phri.UUCP> Date: Sun, 23-Feb-86 12:17:46 EST Article-I.D.: phri.2248 Posted: Sun Feb 23 12:17:46 1986 Date-Received: Wed, 26-Feb-86 07:56:05 EST References: <2000@psuvax1.UUCP> Reply-To: greenber@phri.UUCP (Ross Greenberg) Distribution: net Organization: Public Health Research Inst. (NY, NY) Lines: 36 Xref: linus net.micro.pc:6911 net.micro.ti:145 In article <2000@psuvax1.UUCP> holland@psuvax1.UUCP (Fred Hollander) writes: >I am using a 'more' program that was posted some time ago. It allows you >to enter the editor by typing 'e'. It works fine but, when I add the line: > switchar=- >to my config.sys file, trying to enter the editor from more causes the error: > Specified COMMAND search directory bad >and doing a set shows that PATH is empty and COMPSPEC is the only other >environment variable set. > >I've tried setting the SHELL in the config.sys file and changing the PATH >to use '/' instead of '\' but, I've had no luck. >Does anybody know what the problem might be? > Oh well....I've hit the same problem, alas. It stems from code trying to execute a program called "COMMAND/C". If switchar=- is set, then the program "COMMAND/" is attempted to be executed, eventually falling flat on its face. The only solution I've found is a choice between two uglies: 1) Create a program that switches back and forth the switchar via DOS interrupt 0x21 with AH=0x37. 2) Debug the code in question, do a search for the '/C' and replace it with a '-C'. When will people learn to check the real environment before making assumptions? .... -- ------ ross m. greenberg ihnp4!allegra!phri!sysdes!greenber [phri rarely makes a guest-account user a spokesperson. Especially not me.]