From 4f6fb6b173181da367a5173473903cfa71d33388 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Thu, 26 Dec 2024 20:14:04 +0200 Subject: [PATCH] while: clarify descriptions (#15232) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/while.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/while.md b/pages/common/while.md index 7bdb6fbb54..cb39b2e297 100644 --- a/pages/common/while.md +++ b/pages/common/while.md @@ -1,6 +1,6 @@ # while -> Simple shell loop. +> Simple shell loop that repeats while the return value remains zero. > More information: . - Read `stdin` and perform an action on every line: @@ -11,6 +11,6 @@ `while :; do {{command}}; sleep 1; done` -- Execute a command until it returns a non-zero value: +- Execute a command until it fails: `while {{command}}; do :; done`