petzku / Aegisub-Scripts

petzku's Aegisub automation scripts
23 stars 6 forks source link

Remove command from io.run_cmd output on windows (closes #10) #11

Closed petzku closed 2 years ago

petzku commented 2 years ago

Allows stuff like piping streams directly.

Zahuczky commented 2 years ago

Breaks compatibility with some scripts it used to work with. File "C:/Users\*****\AppData\Roaming\Aegisub\automation\include\petzku\util.moon", line 128 run_cmd attempt to perform arithmetic on local 'cmdend' (a nil value)

petzku commented 2 years ago

Oh, this is multiline commands, isn't it

Zahuczky commented 2 years ago

Yes it is.

The string passed along to run_cmd is a bunch of commands stitched together with \n at the end of each one. The exact script doing it gets outdated as this gets merged and a different method can be used, but nonetheless, might break other peoples scripts.

petzku commented 2 years ago

original issue should be fixed by #26. Closing this