Skip to content

Fix strings in bash #2586

Open
Open
@pokey

Description

@pokey

In bash, we don't properly support strings. For example:

commit_message="$(git log -1 --pretty=format:"%s" HEAD)"

This is actually two nested strings: "$(git log -1 --pretty=format:"%s" HEAD)" and "%s". Instead we treat it as two strings in sequence: "$(git log -1 --pretty=format:" and " HEAD)". We should figure out how to make this work, probably using the parse tree, and/or some flavour of #1812 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions