Open chrysn opened 10 months ago
Thanks! It's actually the shell that prints the commands, laze '-v' adds '-x' to the sh commandline (enabling the shell's own tracing). I'll look into printing within laze!
Oooh ... then it sounds like laze is doing things right, and the shell is buggy, but admittedly the former is likely easier to fix.
For running different cargo commands, I extracted what laze calls by running
... but cop-pasting the line starting with RIOTBASE=, my shell threw an error because escaping was off -- it says
OPENOCD_ARGS=-f board/nordic_nrf52_dk.cfg
which comes across to the shell as setting OPENOCD_ARGS to-f
and then callingboard/nordic_nrf52_dk.cfg
. laze clearly has this right internally (the right command is called), but appears to naively print the shell arguments space-separated without extra escaping.I'm too deep somewhere else in the stack to PR it, but I've found the
shlex
crate useful for escaping strings for shells when arguments can't be passed to anexec()
call.