Skip to content

Fix broken YSU_MESSAGE_FORMAT default in bash - #1

Open
shinenelson wants to merge 1 commit into
vangie:mainfrom
shinenelson:fix/ysu-message-format-default
Open

Fix broken YSU_MESSAGE_FORMAT default in bash#1
shinenelson wants to merge 1 commit into
vangie:mainfrom
shinenelson:fix/ysu-message-format-default

Conversation

@shinenelson

Copy link
Copy Markdown

Bash's ${VAR:=word} default-word parsing stops at the first
unescaped closing brace instead of brace-balancing, so the literal
default {prefix} {arrow} {message} truncated to just {prefix. Use a
plain conditional assignment instead, which sidesteps the parser
limitation entirely.

Bash's ${VAR:=word} default-word parsing stops at the first
unescaped closing brace instead of brace-balancing, so the literal
default {prefix} {arrow} {message} truncated to just {prefix. Use a
plain conditional assignment instead, which sidesteps the parser
limitation entirely.
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