1 2 3 4 5
#!/bin/bash # mainly for use in steam (backtrace-run %command%) unbuffer backtrace "$@" |& tee $(mktemp ~/backtrace-XXXX)