Skip to content

Fix stray closing paren in syslog tag default in bashlog.sh#462

Merged
Zordrak merged 1 commit intomasterfrom
fix/451-bashlog-syslog-tag
Apr 24, 2026
Merged

Fix stray closing paren in syslog tag default in bashlog.sh#462
Zordrak merged 1 commit intomasterfrom
fix/451-bashlog-syslog-tag

Conversation

@Zordrak
Copy link
Copy Markdown
Collaborator

@Zordrak Zordrak commented Apr 24, 2026

Summary

Fixes #451

Bug

In lib/bashlog.sh line 30, the syslog tag default had a literal ) outside the parameter expansion:

# Before:
local tag="${BASHLOG_SYSLOG_TAG:-${0##*/})}";
# After:
local tag="${BASHLOG_SYSLOG_TAG:-${0##*/}}";

This caused every syslog message to have a malformed tag like tfenv-install) instead of tfenv-install.

Testing

  • ./test/run.sh test_list.sh passes (exercises logging subsystem throughout).
  • One-character fix with zero risk of side effects.

Fix #451: Remove literal ")" appended to every syslog tag.

The default value expression ${0##*/}) had an extra ) outside the
parameter expansion braces, causing every syslog message to have a
malformed tag like "tfenv-install)" instead of "tfenv-install".
@Zordrak Zordrak merged commit c01c7ac into master Apr 24, 2026
5 checks passed
@Zordrak Zordrak deleted the fix/451-bashlog-syslog-tag branch April 24, 2026 15:11
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.

Bug: Stray closing paren in syslog tag default in bashlog.sh

1 participant