Is the SHELL environment variable available for jobs running on Ubuntu hosts #59413
Replies: 5 comments
-
/cc @HarryMichal |
Beta Was this translation helpful? Give feedback.
-
Ping. I still see the same behaviour. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
For what it's worth, I ended up working around it by explicitly setting the
I would still like to know why this is happening in the first place. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I am trying to run the Toolbx test suite through a GitHub Actions workflow on Ubuntu 22.04 hosts. It looks as if the
SHELL
environment variable is mysteriously missing in some cases.I added a Debug step to the beginning of the job to illustrate this:
It produces:
So,
echo $SHELL
leads to/bin/bash
, butSHELL
is absent from the output ofenv(1)
, and/proc/$$/cmdline
confirms that I am indeed using Bash. For what it's worth, it seems like processes spawned from the job don't haveSHELL
set in their environments either.Is this expected? Do the GitHub Actions workflows do something special to the
SHELL
environment variable?I am struggling to come up with the right keywords for searching because the phrase SHELL environment variable is often used to mean any environment variable instead of specifically SHELL.
Beta Was this translation helpful? Give feedback.
All reactions