Gleam EA6: run.sh/your_program.sh grep filters prevent the correct status code from being returned

I noticed that for Scanning: Lexical Errors, the run scripts for the Gleam track contain grep filtering to remove the compiler messages, until a flag is implemented in the gleam cli.

However, these grep filters seem to create issues with ensuring error code 65 is returned, as the stdout of the program is sent to stdin for grep, and grep succeeds, returning an exit code of 0.

1 Like

Yep, we’re waiting for the next minor release to fix this - in the meantime, there’s a workaround for this here: Bad run script for gleam - #4 by rohitpaulk.

2 Likes