shenwei356 / rush

A cross-platform command-line tool for executing jobs in parallel
https://github.com/shenwei356/rush
MIT License
866 stars 63 forks source link

Problem passing string using curly brackets #61

Closed hellishvictor closed 3 weeks ago

hellishvictor commented 3 weeks ago

Hi, here in Windows I need some help: coreutils echo "a attr{href}"="h4 text{}" | rush -k -D "=" echo {} outputs:

a attr{href}
h4 texth4 text{}

when I want:

a attr{href}
h4 text{}

text{} has curly brackets with nothing inside, and since rush uses them also, it output wrong. Is there a workaround for this? Cheers.

shenwei356 commented 3 weeks ago

fixed:

$ echo "a attr{href}"="h4 text{}" | rush -k -D "=" echo {}
a attr{href}
h4 text{}

$ echo -ne "a{},b{{}},c{d}" | rush -D , -k "echo {}" 
a{}
b{{}}
c{d}

rush_windows_amd64.exe.tar.gz

hellishvictor commented 3 weeks ago

You're god, now it works like a charm! Thank you very much man!