acr-builder icon indicating copy to clipboard operation
acr-builder copied to clipboard

Escape &,> in --set and --build-arg

Open northtyphoon opened this issue 6 years ago • 1 comments

Feature Request: Escape the & > passed in --build-arg and --set options, eg

acb build --build-arg arg1=a&b  => arg1=a\&b
acb exec --set key1=a>b => key1=a\>b

Maybe it's just safe to escape all chars passed in --build-arg and --set, eg \a\r\g\1\=\a\&\b

northtyphoon avatar Oct 10 '18 00:10 northtyphoon

I had the same issue if it contains { as it errors saying there is no closing braket

blueboxes avatar Jul 03 '23 14:07 blueboxes