From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16846 invoked from network); 20 Feb 1999 14:05:49 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Feb 1999 14:05:49 -0000 Received: (qmail 13971 invoked by alias); 20 Feb 1999 14:04:53 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2168 Received: (qmail 14765 invoked from network); 20 Feb 1999 11:32:15 -0000 Message-ID: <3AABFE76426DD211AC3000805FFE11768A713F@hq-msg04.nwest.mccaw.com> From: "Trinh, Timothy" To: "'Bart Schaefer'" Cc: "'zsh-users@math.gatech.edu '" Subject: RE: Problem running zsh on WinNT 4.0 Date: Fri, 19 Feb 1999 16:40:05 -0800 X-Mailer: Internet Mail Service (5.5.2232.9) Hello All, Once again I appreciated all the help that I have been given. It was definitely a typo problem when I place the #!c:/bin/zsh/zsh.exe in my shell scripts. After correcting the typo, the shell script ran beautifully. Thanks again to all who have taken the time to answer my questions, Timothy ---------- From: Bart Schaefer[SMTP:schaefer@brasslantern.com] Sent: Friday, February 12, 1999 11:25 PM To: Trinh, Timothy; 'zsh-users@math.gatech.edu ' Subject: Re: Problem running zsh on WinNT 4.0 On Feb 12, 4:49pm, Trinh, Timothy wrote: } Subject: RE: Problem running zsh on WinNT 4.0 } } Hello ALL, } } I am not able to run shell script } like I do on Unix. When I do an ls -l on the shell script, } do not see any x permissions on the shell script. There's not really any such thing as "x permission" in NT. Anything with the right file extension (.exe, .bat, ...) has "execute permission." I don't recall exactly how zsh's internal tests for executable-ness are resolved in Amol's port. } Is there a particular way of executing the shell script via the zsh } program on WinNT4.0? I don't believe so. } Do I need to name the shell script in a } certain way in order for it to execute? Zsh first attempts to let the system run the named file, and then when (if) that fails it looks at it for a #! line. So ... If you give the script a .exe extension, NT will try to run it as a binary, I think. Not good. If you give it a .bat extension, it'll try to run it as a batch file. That's probably even worse, as bits of the script might actually look sensible enough to the batch processor to cause something to happen. } I have tried including the } following line at the beginning of the shell script: } } #!c:/bin/zsh/zhs.exe ^^ Did you spell "zsh.exe" correctly in the shell script? Otherwise I'm without clue. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com