delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/20/10:20:52

Date: Sun, 20 Apr 1997 17:04:17 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "John M. Aldrich" <fighteer AT NO DOT SPAM DOT cs DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Getting INFO M-x print-node to actually print?
In-Reply-To: <3355CDC4.6A7F@NO.SPAM.cs.com>
Message-ID: <Pine.SUN.3.91.970420170355.578M-100000@is>
MIME-Version: 1.0

On Thu, 17 Apr 1997, John M. Aldrich wrote:

> INFO_PRINT_COMMAND=%/>;INFO_PRINT_COMMAND%cat >c:\info.prn
> 
> The extra junk at the beginning allows me to
> override the setting with a preexisting environment variable.

Why not just say this:

+INFO_PRINT_COMMAND=cat >c:\info.prn

That `+' tells the DJGPP startup code that if the variable is defined
in the real environment, it overrides the value from DJGPP.ENV.  It's
all in the docs (type "info know hidden djgpp").

Also note that since INFO_PRINT_COMMAND is passed to `popen', you
don't need the ugly backslashes, you can say "> c:/info.prn" (recall
that `popen' emulates redirection internally).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019