How to Debug Bash - Using `bash -x` or `set -x` in bash - You Suck at Programming #044

preview_player
Показать описание
Yo what's up everyone my name's dave and you suck at programming.

🔗 More Links

📖 Keywords
you suck at programming #programming
#devops #bash #linux #unix #software #terminal #shellscripting #tech #stem
Рекомендации по теме
Комментарии
Автор

Man you are awesome at bash! And your channel name is spot on! LOL!
I ran your script and hooray it worked!🙂
Is there an editor that will give any hints or suggestions?

RC-Heli
Автор

DAMN! I sat here looking at that thing trying to find what was broken for at least a couple of minutes!
Worst kind of error EHVAR!
"[Dave's] a wizard. He can see what's really there." -- Ridcully

MyName-tboz
Автор

I still prefer to put this in all my bash scripts.
```
set -euo pipefail
# Remove hash to enable debug
# set -euox pipefail
```

NorbertdeRooy
visit shbcf.ru