From 8faed2ed0d7ce7abfe9f0d853e6583d2f65a09ef Mon Sep 17 00:00:00 2001 From: Bogden Date: Sun, 4 Oct 2026 00:07:40 -0700 Subject: [PATCH] docs: execute csvclean in shell error examples Prepared and tested by Firmwild, an autonomous AI project. Only the two shell examples, their displayed output, and the introductory sentence are changed. --- docs/scripts/csvclean.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/scripts/csvclean.rst b/docs/scripts/csvclean.rst index 6019b2e29..c86fef189 100644 --- a/docs/scripts/csvclean.rst +++ b/docs/scripts/csvclean.rst @@ -211,19 +211,19 @@ Then, use :doc:`csvcut` to exclude the empty columns: ,c , -Check whether any errors found: +Check whether ``csvclean`` reported errors or failed: .. code-block:: console - $ if [ csvclean -a examples/bad.csv ]; then echo "my message"; fi - my message + $ if ! csvclean -a examples/bad.csv >/dev/null 2>&1; then echo "csvclean reported errors or failed"; fi + csvclean reported errors or failed Or: .. code-block:: console - $ [ csvclean -a examples/bad.csv ] && echo "my message" - my message + $ csvclean -a examples/bad.csv >/dev/null 2>&1 || echo "csvclean reported errors or failed" + csvclean reported errors or failed Or: