[X-Unix] BASH problem?
Russell McGaha
RussellMcGaha at mac.com
Tue Dec 7 16:33:16 PST 2004
Start of script segment
#!/bin/tcsh -x
set Myday = `date '+%a'`
echo $Myday `date` | tee -a tempfile
setenv CVSROOT :pserver:anonymous at cvs-mirror.mozilla.org:/cvsroot
end of script segment
errors
[18:30:21 Tue Dec 07] [localhost:~] russellm$source MozScript1d.txt
Tue Dec 7 18:30:53 CST 2004
-bash: setenv: command not found
-bash: @: command not found
-bash: MozScript1d.txt: line 16: syntax error near unexpected token
`else'
-bash: MozScript1d.txt: line 16: ` else'
[18:30:53 Tue Dec 07] [localhost:~] russellm$
On Dec 7, 2004, at 6:23 AM, Eugene wrote:
> On Tue, Dec 07, 2004 at 05:47:01AM -0600, Russell McGaha wrote:
> :
> : In an effort to start learning Bash I change my shell from Tcsh to
> : Bash, but that's caused a problem. I've a script that runs nightly
> to
> : pull and build Mozilla, the script is a Tcsh script with a first line
> : of "#!/bin/tcsh -x". Now I THOUGHT, that line told the 'system' to
> run
> : that script under Tcsh; but with my shell set to Bash, I get all
> kinds
> : of Bash errors on the first lines of the script and the script
> doesn't
> : run. I've tried running "do script with command "/bin/tcsh;source
> : MozScript1d.txt;" " from an AppleScript to invoke Tsch first, and
> then
> : run the script; but all though Tsch gets invoked my scripts doesn't.
> : Anyone know what I'm doing wrong or how I can correct this?
>
> It would help if you posted the first few lines of that script that is
> already bombing.
>
>
> --
> Eugene Lee
> http://www.coxar.pwp.blueyonder.co.uk/
> _______________________________________________
> X-Unix mailing list
> X-Unix at listserver.themacintoshguy.com
> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix
More information about the X-Unix
mailing list