Bash preexecute
- by Alex_Bender
I'm trying to write bash command wrapper, which will be patch bash current command on the fly. But i'm faced with the problem. As i'm not a good Shell user, i can't write right expression of variable assignment in string. See bellow:
I'm set trap to preexecute, through this:
alex@bender:~$ trap "caller >/dev/null || xxx…