miniscript icon indicating copy to clipboard operation
miniscript copied to clipboard

command-line MiniScript fails when lines in input script are too long

Open JoeStrout opened this issue 6 years ago • 3 comments

If command-line MiniScript is given a path to a script file that contains very long lines (e.g., 2700 characters long), it terminates without generating any output (other than the standard version header).

Sample script file that shows the problem (invoking as miniscript test.ms, after renaming this file to test.ms of course):

test.ms.txt

JoeStrout avatar Feb 05 '20 02:02 JoeStrout

This doesn't seem to happen anymore? At least with the attached test file...

Arcnor avatar Jan 07 '22 22:01 Arcnor

It still happens for me (on macOS). What platform are you testing on? Perhaps it's a Unix/Linux thing?

JoeStrout avatar Jan 08 '22 03:01 JoeStrout

I'm actually testing on macOS as well, just after downloading the latest commit.

Just to verify, the output should be the number 256 and the "Nothing blablabla" message, right?

Maybe I'm using the wrong class to run it? Not sure if you have more than one CLI-like thing in there 🙂.

Arcnor avatar Jan 08 '22 07:01 Arcnor

Just tested again on MacOS (Command-Line (Unix) v1.21; language v1.6.1 (Jun 30 2023)); still happening here.

JoeStrout avatar Oct 31 '23 21:10 JoeStrout