Skip to content

"stray \ before !" in script #177

@szigetva

Description

@szigetva

I got the error message .grep: warning: stray \ before ! when bb ran. I changed \! to ! in two lines in the script, which fixed the error.

Here's the diff:

710c710 < nposts=$(grep -c "<\!-- text begin -->" "$i") --- > nposts=$(grep -c "<‍!-- text begin -->" "$i") 870c870 < nposts=$(grep -c "<\!-- text begin -->" "$i") --- > nposts=$(grep -c "<‍!-- text begin -->" "$i")

Note that I had to add a zero-width space in the code above so that it renders properly, I guess you can't just copy it as is.


Edit 2023-02-27:
With this modification the footer is inserted twice. The issue remains, my solution above is not adequate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions