From c02fbeff112e0172d0ad12bf7709099784305396 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 18 Mar 2015 20:41:52 -0400 Subject: Hey, I built Bash 1.14 on a modern box! --- public/bash-arrays.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'public/bash-arrays.md') diff --git a/public/bash-arrays.md b/public/bash-arrays.md index cbbd4c4..23d90bb 100644 --- a/public/bash-arrays.md +++ b/public/bash-arrays.md @@ -407,8 +407,8 @@ for the arguments array, which is; though getting subset arrays from `$@` and `$*` is not (tip: use `set --` to re-purpose the arguments array). Writing for various versions of Bash, though, is pretty do-able. -Everything here works all the way back in bash-2.0 (1996), with the -following exceptions: +Everything here works all the way back in bash-2.0 (December 1996), +with the following exceptions: * The `+=` operator wasn't added until Bash 3.1. @@ -430,5 +430,6 @@ following exceptions: * In Bash 4.1 and higher, it works in the way described in the main part of this document. -Bash 1.x won't compile with modern GCC, so I couldn't verify how it -behaves. +Now, Bash 1.x doesn't have arrays at all. `$@` and `$*` work, but +using `:` to select a range of elements from them doesn't. Good thing +most boxes have been updated since 1996! -- cgit v1.2.3