Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Problem running zsh on WinNT 4.0
- X-seq: zsh-users 2155
- From: Chavdar Ivanov <ci@xxxxxxxxxx>
- To: "Trinh, Timothy" <timothy.trinh@xxxxxxxxx>
- Subject: RE: Problem running zsh on WinNT 4.0
- Date: Mon, 15 Feb 1999 08:37:07 -0500 (EST)
- >received: from marge by delcam.com; Mon, 15 Feb 99 13:30:03 GMT
- Cc: "'zsh-users@xxxxxxxxxxxxxxx'" <zsh-users@xxxxxxxxxxxxxxx>
- In-reply-to: <3AABFE76426DD211AC3000805FFE11768A7131@xxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
On Friday Trinh, Timothy gave us enlightenment about RE: Problem running...:
> Hello ALL,
>
> I really appreciated all the suggestion I have received regarding setting up
> the zsh program set up on WinNT40.
> I am able to start up the zsh program and have it automatically source my
> startup files. Even though my zsh program
> is starting up properly on my WinNT4.0, 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. When I chmod a+x <shell
> script name>, I still do not see the x permissions on the
> shell script. Is there a particular way of executing the shell script via
> the zsh program on WinNT4.0? Do I need to name the shell script in a
> certain way in order for it to execute? I have tried including the
> following line at the beginning of the shell script:
>
> #!c:/bin/zsh/zhs.exe
>
> Executing the shell script with the above line in it, I get the following
> error: zsh: exec format error: <shell script name>.
>
> Any suggestions and comments are greatly appreciated.
>
> Thanks,
> Timothy
>
> PS: Larry S.: Are there any other arguments I should be aware of in running
> the zsh program?
>
> ----------
>
Use Explorer to associate files with extension, i.e., .zsh, with the zsh.
I have two actions associated with it - Edit and Run; Edit invokes pfe32
on the script, Run just runs it ( you point to your current zsh.exe
location for this to work ).
>From CMD you can run zsh scripts by specifying the extension:
C:\ > script.zsh
The trouble now is you apparently can not pass any parameters to the
script, therefore you might resolve to using 'read' for them in the script
itself. Any ideas here?
----------------------------------------------------------------
Chavdar Ivanov | Talbot Way, Small Heath Business Park
Delcam UK Limited | Birmingham B10 0HJ, United Kingdom
Customer Support Dept. | (+44)121-6831014
----------------------------------------------------------------
Keep Canada beautiful. Swallow your beer cans.
----------------------------------------------------------------
Monday, February 15, 1999
Messages sorted by:
Reverse Date,
Date,
Thread,
Author