massemanet / eper

Erlang performance and debugging tools
MIT License
437 stars 128 forks source link

Quote trace patterns in redbug command line tool #43

Closed legoscia closed 9 years ago

legoscia commented 9 years ago

This preserves spaces in trace pattern passed on the command line, such as:

redbug foo@127.0.0.1 "foo:bar -> return"

Without this change, the trace pattern would have been broken up by the shell script, and the only way to write that pattern would be without spaces, "foo:bar->return". While doable, it's unintuitive, especially as the part before "->" gets interpreted correctly, and you get a trace that shows function calls but no return values.

massemanet commented 9 years ago

in 0.95.0