[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: shell program help wanted!
- From: Kevin Colby <kevinc grainsystems com>
- To: redhat-install-list redhat com
- Subject: Re: shell program help wanted!
- Date: Thu, 14 Sep 2000 12:29:30 -0500
Jean Francois ORTOLO wrote:
>
> Hi nw x
> 1) You should begin your script file with this line:
>
> #!/bin/tcsh
>
> I assume you use the tcsh shell, for your first instruction is csh
> mode. This way, your script will be interpreted by the /bin/tcsh shell,
> whatever the $SHELL variable contains.
Sorry, Jean, but I'm going to have to disagree on this point.
(BTW - Nice touch on the 'exit'.)
The for/do/done loop syntax and the if/fi syntax are quite
distinctly Bourne style, and he'll need it to be "#!/bin/sh"
on the first line, not csh or tcsh.
- Kevin Colby
kevinc grainsystems com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]