help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is $SHELL used by bash in anyway?


From: Peng Yu
Subject: Is $SHELL used by bash in anyway?
Date: Fri, 25 Feb 2022 04:01:46 -0600

Hi,

In a script run by corn (on macOS), $SHELL is shown as /bin/sh, $BASH
is shown as /bin/bash.

Within the script, I run this command. $BASH is changed to
"/usr/local/bin/bash", but $SHELL remains as /bin/sh.

   LANG=en_US.UTF-8 exec /usr/local/bin/bash -c "source ~/.bashrc;
some_other_script.sh"

Does bash use the variable $SHELL in any way? Or bash simply leave it
as is as a regular environment variable without doing anything extra?

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]