mirror of
https://github.com/dylanaraps/pure-sh-bible
synced 2024-06-08 16:52:31 +02:00
docs: update
This commit is contained in:
parent
9e0981752f
commit
6485d201ac
|
@ -1018,7 +1018,7 @@ shift
|
||||||
# Solution (shift on its own is really 'shift 1').
|
# Solution (shift on its own is really 'shift 1').
|
||||||
# This uses 'shift 0' if there are no arguments and
|
# This uses 'shift 0' if there are no arguments and
|
||||||
# 'shift 1' if there are.
|
# 'shift 1' if there are.
|
||||||
shift "$(($# > 0 ? 1 : 0))"
|
shift "$(($# ? 1 : 0))"
|
||||||
```
|
```
|
||||||
|
|
||||||
## `read` with no given variable crashes `dash`.
|
## `read` with no given variable crashes `dash`.
|
||||||
|
|
Loading…
Reference in a new issue