🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #5801

Re: Help with SWITCHAR

#5801
From: glenn
Date: Wed, 26 Feb 1986 19:57
24 lines
1633 bytes
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

Most programs which allow you to run other programs from within usually use some
variation of the dos exec (dos call 41B)to spawn off another copy of 
command.com that would look like this (that is if you entered if from 
the dos prompt):
C> command edt /c

Now, most C compilers do not look for the SWITCHAR variable when building up
this text string and blithely put in /c.  Thus, the problem is that when you
redefine switchar, '/' becomes a path spec, not an argument character, and
thus screws up command.com.

The solution?  Rewrite your C compiler's exec call to check the SWITCHAR
variable when doing an exec.

Glenn Ehrlich
International Anasazi
Phoenix, AZ
Technical Details
Message-ID: <584@anasazi.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!hao!noao!terak!anasazi!glenn
References: <2000@psuvax1.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!hao!noao!terak!anasazi!glenn
From: glenn@anasazi.UUCP
Newsgroups: net.micro.pc,net.micro.ti
Subject: Re: Help with SWITCHAR
Message-ID: <584@anasazi.UUCP>
Date: Wed, 26-Feb-86 14:57:16 EST
Article-I.D.: anasazi.584
Posted: Wed Feb 26 14:57:16 1986
Date-Received: Sat, 1-Mar-86 23:18:01 EST
References: <2000@psuvax1.UUCP>
Reply-To: glenn@anasazi.UUCP (Glenn Ehrlich)
Distribution: net
Organization: Anasazi, Phoenix Az.
Lines: 24