This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Kwan,
re:
> I have been using mainly bash as the shell for writing shell scripts. If I
> run mcenv in the bash scripts, would bash the default shell inside the
> mcenv routine?
I think so.
re:
> It appears that csh is the default?
You should test this by running 'mcenv' from the command line
and then run 'echo $SHELL'.
re:
> i.e. Can I run shell commands inside mcenv in a shell script?
You should be able to. Whether or not all of the environment
variables defined outside of the 'mcenv' session are still
defined the way they were is in question. Like checking which
shell is running ('echo $SHELL'), these can/should be checked
to make sure that the environment is setup like you want.
Cheers,
Tom
--
****************************************************************************
Unidata User Support UCAR Unidata Program
(303) 497-8642 P.O. Box 3000
address@hidden Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage http://www.unidata.ucar.edu
****************************************************************************
Ticket Details
===================
Ticket ID: XGH-901821
Department: Support McIDAS
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata
inquiry tracking system and then made publicly available through the web. If
you do not want to have your interactions made available in this way, you must
let us know in each email you send to us.