Back to Browse

Basic methods to debug a shell script | using shellcheck for syntax errors | PS4 Shell Variable

1.7K views
Jan 31, 2022
12:29

Hell guys , this video is about learning the common methods for debugging a shell script . I explained modes like noexec , xtrace and verbose which are used used with set command and bash command during debugging. I also discussed about shellcheck which is used to find syntax error in shell script. shellcheck also provides suggestions and warning that can be used to create a better shell script. I also elaborated PS4 shell variables which is used along with execution trace mode . Throughout the video , I had provided many examples to learn debugging a shell script. Topics covered in this video are : - debug a shell script - no execution mode with bash command - execution trace mode with set command - verbose mode with bash command - PS4 shell variable - shellcheck to debug a shell script - -v , -n and -x option in bash command - no execution mode in set command - execution trace mode in set command - verbose mode in set command - -v , -n and -x option in set command - debugging examples in shell scripting #debug #shellcheck #shell #script #PS4 __________________________________________________________ 🌻 Support me with 🌻: Join : https://www.youtube.com/channel/UCCCanTbEvuAXpqnTCyjAnLg/join Patreon : https://www.patreon.com/pedagogy __________________________________________________________ 👀 Connect with me on 👀 : Telegram : https://t.me/vpedagogy Instagram : https://www.instagram.com/vikramsingh100998 LinkedIn : https://www.linkedin.com/in/vikram-singh-0b3712178/ Facebook : https://www.facebook.com/vikramsingh100998

Download

1 formats

Video Formats

360pmp419.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Basic methods to debug a shell script | using shellcheck for syntax errors | PS4 Shell Variable | NatokHD