Skip to content

Macros need escaping for bash shell #5

@Aidan63

Description

@Aidan63

Hello,
I've recently came across two issues for macros with the hxp.HXML class. The first is that addMacro only adds one dash for the macro flag when it should be a double dash.

Once that one character modification has been made the second issue is that the brackets in macro functions need to be escaped for bash. Currently macros are simple appended to the HXML array e.g. --macro snow.Set.config("config.json") but this causes the bash: syntax error near unexpected token('\ error on linux when calling build. To get around this macro brackets should to be escaped e.g. --macro snow.Set.config\("config.json"\).

Thanks

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