Message: Re: about 'source geant4.csh' command Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: about 'source geant4.csh' command 

Forum: Installation and Configuration
Re: Question about 'source geant4.csh' command (Xiao Tong)
Date: 29 Jan, 2015
From: Michael H. Kelsey <Michael H. Kelsey>

On Thu, 29 Jan 2015 05:51:57 GMT, Xiao Tong wrote:
> when I want to run : source geant4.csh The error below occurs:
> 
> -bash:
> /Users/JiangJY12/Documents/geant4/geant4.10.1-install/bin/geant4.csh:
> line 27: syntax error near unexpected token `(' -bash:
> /Users/JiangJY12/Documents/geant4/geant4.10.1-install/bin/geant4.csh:
> line 27: `set ARGS=($_)'
> 
> Anyone can tell me why?
> 
> I am a new user...

There are two different flavors of Unix shells: "Bash" (which is what you are using) belongs to the "Bourne shell" family, the basic version of which on Unix systems is called /bin/sh. "Tcsh" belongs to the "C shell" family, the basic version of which is called /bin/csh.

The two shell families have different command-line syntax, so we have to provide separate scripts for each of them. Since you are using Bash, you should source the "geant4.sh" script.

 Add Message Add Message
to: "Re: about 'source geant4.csh' command"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]