From 07bbc54906189dbc6543047c9a4fa5d4d4a99d9e Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Mon, 4 May 2026 19:43:27 +0800 Subject: [PATCH] docs: clarify --silent flag doesn't suppress exit codes Fixes #208. The --silent flag only suppresses error output, not the exit code. Add an example showing how to combine --silent with '|| shx true' to also ignore the exit status. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 72b22e2..7e9f68b 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ sub $ shx rm -r sub # options work as well $ shx --silent ls fakeFileName # silence error output +$ shx --silent ls fakeFileName || shx true # silence error output and ignore the exit status $ shx --negate test -d dir # Negate status code output (e.g., failed commands will now have status 0) ```