| Summary: | "ARGS: Subscript out of range." when sourcing geant4.csh from .tcshrc | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | jasondet |
| Component: | cmake | Assignee: | Ben Morgan <Ben.Morgan> |
| Status: | CLOSED FIXED | ||
| Severity: | minor | CC: | Giovanni.Santin |
| Priority: | P5 | ||
| Version: | 9.5 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
jasondet
2011-12-09 23:17:43 CET
We'll look at fixing this, though other use cases do require the self-location functionality. For information, I am having exactly the same problem on a SLES11 64bit machine with tcsh shell. I have a set of custom scripts for the initialisation of Geant4 and all related libraries and ancillary software. The script geant4.csh works fine only if I source it directly from the tcsh prompt, but it fails if sourced indirectly (from my general Geant4 init tcsh scripts). The problem is a showstopper, actually, as there is no way to source geant4.csh directly from the prompt for batch jobs. Fixed in r58945 [cmake-V09-05-18]. The scripts can now be sourced inside others, and in this case you either have to do cd script_dir ; source geant4.csh or source script_dir/geant4.csh script_dir This need to supply extra info is due to the limitations of the C-shell. If the script can locate itself using the above, it will print an error message, but will not fail or make any changes to the environment. Should be in 9.6.0beta. |