aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-10-16 10:57:29 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-10-16 10:57:29 +0300
commit6485d201aca950a28953d57f49079e119af9dbc5 (patch)
treeae1a68315dc79b2eec943e5f2b2f61fb93313c63
parent9e0981752fca795a3eac87ebfac395666776e97b (diff)
downloadpure-sh-bible-6485d201aca950a28953d57f49079e119af9dbc5.tar.gz
pure-sh-bible-6485d201aca950a28953d57f49079e119af9dbc5.zip
docs: update
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
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`.