From 6485d201aca950a28953d57f49079e119af9dbc5 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 16 Oct 2019 10:57:29 +0300 Subject: [PATCH] docs: update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dcb8523..ef1cc87 100644 --- a/README.md +++ b/README.md @@ -1018,7 +1018,7 @@ shift # Solution (shift on its own is really 'shift 1'). # This uses 'shift 0' if there are no arguments and # 'shift 1' if there are. -shift "$(($# > 0 ? 1 : 0))" +shift "$(($# ? 1 : 0))" ``` ## `read` with no given variable crashes `dash`.