You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use protections in all bash scripts to prevent bugs. Bash protection of set -eu for unbound variables errors out when sourcing a ROS environment. With complicated shell scripts, -eu is used in CI to ensure all variables used are defined.
Steps to reproduce
set -eu
source /opt/ros/humble/setup.bash
>> Terminal closes
# My long script# Add protectionset -euf -o pipefail
echo foo
echo bar
# lots of other custom code hereset +u # temporary disable protectionsource /opt/ros/humble/setup.bash
set -u # re-enable protection# more custom code here
The text was updated successfully, but these errors were encountered:
Problem
I use protections in all bash scripts to prevent bugs. Bash protection of
set -eu
for unbound variables errors out when sourcing a ROS environment. With complicated shell scripts,-eu
is used in CI to ensure all variables used are defined.Steps to reproduce
Logs
Environment
Workaround
The text was updated successfully, but these errors were encountered: