Skip to content

Fix unexpected subshell execution in bootstrap.sh#678

Merged
MMory merged 1 commit intosecure-software-engineering:developmentfrom
szsam:patch-1
Nov 7, 2023
Merged

Fix unexpected subshell execution in bootstrap.sh#678
MMory merged 1 commit intosecure-software-engineering:developmentfrom
szsam:patch-1

Conversation

@szsam
Copy link
Contributor

@szsam szsam commented Nov 7, 2023

For (list) in bash, list is executed in a subshell environment. Variable assignments do not remain in effect after the command completes.

Fix by using { list; }, where list is executed in the current shell environment.

For `(list)` in bash, `list` is executed in a subshell environment. Variable assignments do not remain in effect after the command completes.

Fix by using `{ list; }`, where `list` is executed in the current shell environment.
Copy link
Member

@MMory MMory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @szsam for your contribution, we appreciate it!

@MMory MMory merged commit 02e832d into secure-software-engineering:development Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants