Greetings all,
I have recently wrote a shell script using vi(1) and had quite a difficulty to debug it. Eventually, I was able to make the script work using mainly
, which causes the script to exit on errors. However, it was rather tedious, so I am wondering if there is a better way to debug a shell script.
The second issue I had was that vi(1) has no, or I was unable to find any way to set, concept of syntax and/or syntax checking. So I am wondering if there is a shell commands aware editor.
Any help in this matter would be appreciated.
Kindest regards,
M
I have recently wrote a shell script using vi(1) and had quite a difficulty to debug it. Eventually, I was able to make the script work using mainly
Code:
sh -en myscript.sh
The second issue I had was that vi(1) has no, or I was unable to find any way to set, concept of syntax and/or syntax checking. So I am wondering if there is a shell commands aware editor.
Any help in this matter would be appreciated.
Kindest regards,
M