[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[McIDAS #XGH-901821]: Default shell in mcenv running within a bash shell script
- Subject: [McIDAS #XGH-901821]: Default shell in mcenv running within a bash shell script
- Date: Wed, 03 Jan 2018 22:48:11 -0700
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.