Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macros need escaping for bash shell #5

Open
Aidan63 opened this issue Nov 11, 2018 · 0 comments
Open

Macros need escaping for bash shell #5

Aidan63 opened this issue Nov 11, 2018 · 0 comments

Comments

@Aidan63
Copy link
Contributor

Aidan63 commented Nov 11, 2018

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

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

No branches or pull requests

1 participant