Hi
For editing, you have the choice: gedit, nano, vim, emacs ... (all of them support the syntax), there are plenty of other editors
Browsing through the manual online bashdb, I came across a tip that gives the author, who is to customize PS4:
Code:
PS4 ='(${ BASH_SOURCE): $ (LINENO)) ($ funcname [0]) - [$ SHLVL (), $ (BASH_SUBSHELL), $?]
It is at once a little clearer that the '+' above. For my part, I got color, and I made a script executable: Debugging.sh
Code:
PS4 = '\ [\ e [00; 36m \] [line: $ (LINENO) = $? - ($ funcn [0]: + func: ($ funcn [0]) - $ (BASH_SRC))] \ [\ e [00m \] - \ [\ e [00; 33m \] (SUBSHL: $ (BASH_SUBSH ) SHLVL: $ SHLVL ()) \ [\ e [00m \]'
set-x
I source in the script that I want 'debugger'. Otherwise, there geany editor Which can also write and execute scripts.
Bookmarks