9 Tips For Writing Safer Shell Scripts

Simple Ways to Improve and Secure our Scripts

Ben Weidig
Level Up Coding
Published in
7 min readJul 5, 2020

--

Shell scripting is a powerful tool available on all platforms, even Windows, thanks to WSL. But it can be easy to make mistakes. Here are some tips to improve our scripts and avoid many problems.

TABLE OF CONTENTS#1: Better Shell Options
#2: It's a TRAP
#3: Check

--

--

Software developer, entrepeneur, blogger. Mostly Java, sometimes Swift, Golang, Bash and all the other fun stuff.