Closed tiborsimko closed 6 years ago
Hi @tiborsimko - that's a very good point! I've looked into this and have now defined an entrypoint.sh
script, which allows the user to choose the shell he/she wants to run. It worked for me for zsh
, bash
, and csh
(the latter complaining about the prompt/SHELL settings, but it still works and I'm not going to fix it since csh
isn't that widely used anyway). One thing that puzzles me a bit is how the ALICE script actually works, I think it should have exec "$@"
as last command as in my script.
The CMS environment is not set up unless one calls shell scripts explicitly. Compare:
Note that only the latter case sets properly all the various CMS environment variables (such as
CMSSW_BASE
,PYTHIA8DATA
and friends). However, one has to explicitly call shell startup scripts before calling a command.This could be made nicer by introducing entry point wrapper scripts (such as explicit
entrypoint.sh
) that would take care of setting the environment variables as necessary before running commands. Seereana-env-aliphysics
for inspiration:This gives an easier user interaction:
One can run commands directly without having to source anything.