Skip to content

#951: accept factbase filenames that start with a dash - #952

Open
gemshrine wants to merge 2 commits into
zerocracy:masterfrom
gemshrine:951
Open

gemshrine wants to merge 2 commits into
zerocracy:masterfrom
gemshrine:951

Conversation

@gemshrine

@gemshrine gemshrine commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

The action accepts an explicit factbase path beginning with a dash, but GNU basename interprets that filename as an option. Since entry.sh uses set -e, the action exits before rendering any pages.

The basename call now uses an option terminator, so filenames such as -facts.fb are treated as path values.

Checks: bash syntax validation for entry.sh and the regression scenario with an explicit -facts.fb path.

Closes #951

@gemshrine

Copy link
Copy Markdown
Contributor Author

@yegor256 Could you review this fix for #951?

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.

Action fails when factbase file name begins with a dash

1 participant