Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The trap command with printing the lines didn't work.

Had to change it to drop the parantheses, then it worked, like this

trap 'read -p "[${BASH_SOURCE:-}:${LINENO:-}] ${BASH_COMMAND:-}"' DEBUG




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: