Skip to content

Fix unexpected subshell execution in bootstrap.sh - #678

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

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

Conversation

@szsam

@szsam szsam commented Nov 7, 2023

Copy link
Copy Markdown
Contributor

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.

@MMory MMory left a comment

Copy link
Copy Markdown
Member

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