yitz_ 1242917609 learn #redirect -x nDuff 1351699435 forget nDuff 1351699437 learn Setting the -x option on bash enables a debugging mode that makes bash output the command name and arguments that it will run (after all parsing and expansion has been applied). Set it by starting a script with ''bash -x ./myscript'' or putting ''set -x'' before the code you want to debug. ''set +x'' turns this behaviour off. To add more information, you can change PS4: PS4=':${BASH_SOURCE}:${FUNCNAME}:${LINENO}+' znDuff 1352939400 forget znDuff 1352939433 learn ''set -x'' (or ''bash -x yourscript'') makes bash output the command name and arguments that it will run (after all parsing and expansion has been applied). Set it by starting a script with ''bash -x ./myscript'' or putting ''set -x'' before the code to debug. ''set +x'' turns this off. To add more information, set PS4: PS4=':${BASH_SOURCE}:${FUNCNAME}:${LINENO}+' geirha 1357949566 forget geirha 1357949573 learn #redirect -x lhunath 1384879039 forget lhunath 1384879164 learn set -x (or ''bash -x myscript'') makes bash output the exact command that it will run after parsing and expansion. You can put ''set -x'' just before the code you want to debug (turn off with ''set +x''). To add more information, change PS4 first: eg. PS4='+($?) $BASH_SOURCE:$FUNCNAME:$LINENO:'