TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Exploring Bash Scripting: Understanding Key Flags

18 点作者 spansoa超过 1 年前

1 comment

adr1an超过 1 年前
First ~66% is about parsing arguments in a script (without treating the subject really), and the last ~33% is about set -euo pipefail (a mandatory line to any half-serious bash script). It&#x27;s a nice read, with accurate and important information. But the intro seemed too verbose to me. And, the text was presented as being mostly about the last third. I have found this a little bit confusing, idk what would be a good intro to `set`, maybe some counter examples would be better. Then the first 66% should be another post entirely, with better treatment to the material being taught (case statements, parsing args from cli to script)...<p>My advise is to use Python instead of Bash. Don&#x27;t be a hardcore programmer, Just get work done and go touch some grass (: