Mail Archives: djgpp/1997/04/20/10:20:52
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 -