HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
rust-shell-script
rust_cmd_lib
Rust2019–2023
rust-shell-script / rust_cmd_lib

rust_cmd_lib

Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way

7Distinct people
14Mentions
0Explicit recommenders
1.2KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 11:56:56 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year14 dated mentions

Observed mentions: 2019-09-27 05:54:21 UTC to 2023-10-26 07:10:09 UTC.

0123452019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 5 mentions; 1 submissions, 4 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2023

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC110
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC514
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC404
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC202
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC202

What Hacker News says

14 sources
c2rust https://github.com/immunant/c2rust : > C2Rust helps you migrate C99-compliant code to Rust. The translator (or transpiler), c2rust transpile, produces unsafe Rust code that closely mirrors the input C code. The primary goal of the translator is to preserve functionality; test suites should continue to pass after translation. crust https://github.com/NishanthSpShetty/crust : > C/C++ to Rust transpiler "CRustS: A Transpiler from Unsafe C to Safer Rust" (2022) https://scholar.google.com/scholar?q=related:WIDYx_PvgNoJ:sc... rust-bindgen https://github.com/rust-lang/rust-bindgen/ : Automatically generates Rust FFI bindings to C (and some C++) libraries nushell/nushell looks like it has cool features and is written in rust. awesome-rust > Applications > System Tools https://github.com/rust-unofficial/awesome-rust#system-tools awesome-rus
Read the rest
t > Libraries > Command-line https://github.com/rust-unofficial/awesome-rust#command-line rust-shell-script/rust_cmd_lib https://github.com/rust-shell-script/rust_cmd_lib : > Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way
In Bash 5.2
Here's my full bash reading list: - ShellCheck: life-changing BASH linter and testing toolkit https://github.com/koalaman/shellcheck - 30 interesting commands for the Linux shell – Víctor López Ferrando https://www.lopezferrando.com/30-interesting-shell-commands/ - 7 Surprising Bash Variables https://zwischenzugs.com/2019/05/11/seven-surprising-bash-va... - anordal/shellharden https://github.com/anordal/shellharden/blob/master/how_to_do... - barryclark/bashstrap https://github.com/barryclark/bashstrap - BashPitfalls : Greg's Wiki http://mywiki.wooledge.org/BashPitfalls - Common shell script mistakes
Read the rest
http://www.pixelbeat.org/programming/shell_script_mistakes.h... - Comparison of all the UNIX shells http://hyperpolyglot.org/unix-shells - Defensive Bash Programming https://www.kfirlavi.com/blog/2012/11/14/defensive-bash-prog... or https://jonlabelle.com/snippets/view/markdown/defensive-bash... - Bash FAQ and Cookbook https://mywiki.wooledge.org/BashFAQ - Detecting the use of "curl | bash" server side https://idontplaydarts.com/2016/04/detecting-curl-pipe-bash-... - Gensokyo Blog - Use Bash Builtins shell,fish,bash https://blog.gensokyo.io/a/fafbe742.html - Rich’s sh (POSIX shell) tricks http://www.etalabs.net/sh_tricks.html - Shell Scripts Matter https://dev.to/thiht/shell-scripts-matter - Shell Style Guide https://google.github.io/styleguide/shell.xml - Shellcode Injection - Dhaval Kapil https://dhavalkapil.com/blogs/Shellcode-Injection/ - Something you didn't know about functions in bash http://catonmat.net/blog/bash-functions - Ten More Things I Wish I’d Known About bash https://zwischenzugs.com/2018/01/21/ten-more-things-i-wish-i... - Ten Things I Wish I’d Known About bash https://zwischenzugs.com/2018/01/06/ten-things-i-wish-id-kno... - Testing Bash scripts with BATS https://opensource.com/article/19/2/testing-bash-bats - Testing Bash scripts with Critic.sh https://github.com/Checksum/critic.sh - Useful BASH and UNIX commands https://cb.vu/unixtoolbox.xhtml - When Bash Scripts Bite :: Jane Street Tech Blogs https://blogs.janestreet.com/when-bash-scripts-bite/ - Bashible: Ansible-like framework for bash-based devops https://github.com/mig1984/bashible - Auto-parse help text from comment at the top of script https://samizdat.dev/help-message-for-shell-scripts/ - Make bash scripts safer by writing them in Rust https://github.com/rust-shell-script/rust_cmd_lib - Additional shell options for non-trivial bash scripts https://saveriomiroddi.github.io/Additional-shell-options-fo...
In Bash Pitfalls
Since macros can execute arbitrary code, this makes me feel uneasy that the strings are just executed within a shell context, with all the appropriate, bug-prone, expansion done by the shell. Its a shame you didn't bother to look at the source code before criticizing. Someone put a lot of work into this library and its actually pretty cool. The package parses the code in the macros [1] and then calls 'std:Process::Command' [2] which, I believe, does not execute a subshell by default. [1] https://github.com/rust-shell-script/rust_cmd_lib/blob/maste... [2] https://github.com/rust-shell-script/rust_cmd_lib/blob/maste...
In Show HN: Using Rust to write shell-script like tasks

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.