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.

Show HN: Rust for Shell Scripting

2 pointsby glorioustaoover 5 years ago

1 comment

ktpsnsover 5 years ago
Tip: In she&#x27;ll context, it is good style to always print argv[0] in log lines, ie the program name. When myscript.rs reports<p><pre><code> INFO: blabla </code></pre> It should better report<p><pre><code> myscript.rs: blabla or myscript.rs: INFO: blabla </code></pre> This helps identifying the source when the script is part of a series of pipes, or running in background, etc