HP3000-L Archives

November 1995, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Paul Taffel <[log in to unmask]>
Reply To:
Paul Taffel <[log in to unmask]>
Date:
Wed, 29 Nov 1995 07:33:49 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
Debbie Blumenthal wrote the following:
 
>>     setvar InsideQEDIT 0
>>     if InsideQEDIT = 1
>>        :set echo=on
>>     else
>>         set echo=on
>>     endif
>
>Am I missing something?  Isn't the above a lot like:
>
>      set echo=on
>
>What is the purpose of checking vars (of any kind) when the results
>are the same either way?
 
The results are *NOT* the same: QEDIT has its own SET command that won't
accept the ECHO parameter; to get it to execute the MPE SET command, it
must have the ':' prefix.  Needless to say, this leading ':' will not
work on all MPE versions, and hence the command file needs to know the
environment in which it's being run.
 
Additionally, QEDIT always evaluates the InsideQEDIT variable as equal to
1, whatever value it's actually been set to.  This allows construction of
command files that are environment sensitive.  MPEX supports a similar
variable: InsideMPEX.
 
Paul Taffel
VESOFT Development Staff
 
[log in to unmask]

ATOM RSS1 RSS2