TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Writing Robust Bash Shell Scripts

2 pointsby twoheyover 11 years ago

1 comment

lakwnover 11 years ago
This article was very relevant to me. I've been writing bash script for so many years, yet I didn't know you could just "set -u" to make bash stop when I accidentally use an uninitialized variable. "set -e" is also incredible useful (bash quits if any statement fails).