Newsgroups: comp.binaries.ibm.pc.d
Path: utzoo!utgpu!watserv1!watmath!mks.com!andy
From: andy@mks.com (Andy Toy)
Subject: Re: Unusual Environment Variables (was Re: EmTeX on MKS Tool Kit)
Date: Thu, 20 Dec 90 23:38:59 GMT
Message-ID: <1990Dec20.233859.6474@mks.com>
Organization: Mortice Kern Systems, Waterloo, Ontario, CANADA
References: <1990Nov30.235708.26093@menudo.uh.edu> <1990Dec14.143523.23435@mks.com> <465@pallas.athenanet.com>

In article <465@pallas.athenanet.com> dlee@athenanet.com (Doug Lee) writes:
>On a related note, there is one variable I need which I can't seem to get
>the MKS shell to accept:  PKZIP.CFG.  This is used by PKZIP to specify where
>the configuration file is.  It seems that dots aren't allowed in variable
>names in the MKS shell (probably because they aren't allowed in Unix shells,
>either :-) ).  

You're right.  You cannot have dots in variables for the Bourne or Korn
Shell on UNIX.  It may be possible to have PKZIP.CFG in the environment.
The only way to get it into the Korn Shell's environment is to have it
defined before starting the Korn Shell.  If you are starting it from
command.com then just make sure it is already set in command.com or if
you use login then try `login your_login_name PKZIP.CFG="stuff"' or you
could try `exec env PKZIP.CFG="stuff" /bin/sh'.

Another alternative is to use the env command to set the variable
PKZIP.CFG just for pkzip's environment.  For example:

	env PKZIP.CFG='stuff' pkzip ...

You can set an alias for it:  

	alias pkzip='env PKZIP.CFG="stuff" c:/bin/pkzip'
-- 
Andy Toy, Mortice Kern Systems Inc.,       Internet: andy@mks.com
  35 King Street North, Waterloo,       UUCP: uunet!watmath!mks!andy
      Ontario, CANADA N2J 2W9      Phone: 519-884-2251  FAX: 519-884-8861
