Skip to content

Conversation

@pd93
Copy link
Member

@pd93 pd93 commented Nov 4, 2024

Fixes #1903

This PR changes the Sh property of a Var to a pointer so that we are able to distinguish between a value that is not set (nil) and a value that is empty (&""). We then use this to return early if we detect an empty dynamic variable. This will always resolve to another empty string.

This fixes cases where a dynamic variable contains a template that resolves to an empty string.

@pd93 pd93 merged commit 148b090 into main Nov 4, 2024
14 checks passed
@pd93 pd93 deleted the 1903-fix-empty-sh-command branch November 4, 2024 13:30
pd93 added a commit that referenced this pull request Nov 4, 2024
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.

In dynamic (shell) variables, template expansion resulting in an empty (no characters) script block causes type error when referenced

3 participants