From 5e9487bbc7db138dbd098f50afeae52dcfc6dfac Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 19 Jun 2018 18:15:26 +1000 Subject: [PATCH] misc: cleanup --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8123943..9320a89 100644 --- a/README.md +++ b/README.md @@ -605,7 +605,7 @@ blue ```sh random_array_element() { # Usage: random_array_element "array" - arr=("$@") + local arr=("$@") printf '%s\n' "${arr[RANDOM % $#]}" } ``` @@ -1570,7 +1570,9 @@ os="$_" I was surprised to find out `sleep` is an external command and isn't a built-in. -**Example Funcrion:** +**CAVEAT:** Requires `bash` 4+ + +**Example Function:** ```sh read_sleep() {