From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24448 invoked from network); 15 Sep 1998 17:23:34 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 15 Sep 1998 17:23:34 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id NAA09433; Tue, 15 Sep 1998 13:16:31 -0400 (EDT) Resent-Date: Tue, 15 Sep 1998 13:15:27 -0400 (EDT) From: "Bart Schaefer" Message-Id: <980915101824.ZM2951@candle.brasslantern.com> Date: Tue, 15 Sep 1998 10:18:23 -0700 References: <19980912074352.C18849@math.fu-berlin.de> <980911235322.ZM1397@candle.brasslantern.com> <19980914195552.C22353@math.fu-berlin.de> <19980915015318.B22850@math.fu-berlin.de> <19980915041905.A23050@math.fu-berlin.de> In-Reply-To: Comments: In reply to Amol Deshpande "RE: zsh for win32 - installation of zshrc" (Sep 14, 5:52pm) X-Mailer: Z-Mail (4.0b.820 20aug96) To: ZShell Users List Subject: Re: zsh for win32 - installation of zshrc Cc: amol@blarg.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"2jX7e.0.1I2.l2g_r"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1799 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Sep 14, 7:55pm, 'Sven Guckes' wrote: } Subject: Re: zsh for win32 - installation of zshrc } } Quoting Bart Schaefer (schaefer@brasslantern.com): } > zagzig[21] zcat zsh.exe.gz | strings -a | less +/zshrc } } Actually, I tried just that - but I figured that it would not work } as there is no directories /etc on Windows systems. :-/ There is, however, a mkdir command ... On Sep 15, 1:53am, 'Sven Guckes' wrote: } Subject: Re: zsh for win32 - installation of zshrc } } And I always thought that the value of a variable on the DOS shell } is "%var%" and not "$var". or has this changed with WindowsNT? It's a property of the shell (or rather, of command.com) not of the OS. So yes, if you were running a DOS batch file, you would use %var%. In zsh scripts, however, it's zsh that interprets the syntax, just as it does on unix, so you use $var. } The value of a variable on Windows cannot be used as $VAR (I think) } but needs to be specified as %VAR% - and this is only possible in batch } files. Right or wrong? Mostly wrong. If what you want to do is set the variables for all Windows apps, e.g. via the Environment tab in the System control panel, then you use %var%. If you're putting the variables in a zsh startup file, you use $var. On Sep 14, 5:52pm, Amol Deshpande wrote: } Subject: RE: zsh for win32 - installation of zshrc } } Remember that these rules apply only if don't set HOME. Since there is } no /etc, only the rules for locating files from $HOME are followed. I don't have windows running at home, but yesterday I installed zsh.exe on an NT machine at work. I created a d:\etc (d: being the boot drive on that machine) and put a zshenv file in it, and lo, zsh reads it. So now the setting of TERM=vt100 and adding the gnu-win32 bin to the path and so on is in d:\etc\zshenv, and every user on that NT box gets it if they start zsh. (I also put in HOME=$HOMEDRIVE$HOMEPATH; what was the reason for not defaulting $HOME from this on NT 4+ ?) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com