[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: shell program help wanted!



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]