From 13b0d1e7fadc29f7ed93ecdc5b99a57ad9ce947a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 10 Feb 2017 12:53:29 -0500 Subject: research/arrays.txt: Fix array length increment in push() --- (limited to 'research/arrays.txt') diff --git a/research/arrays.txt b/research/arrays.txt index 9fa3fa2..a6da93b 100644 --- a/research/arrays.txt +++ b/research/arrays.txt @@ -87,7 +87,7 @@ libesh functions: eval "__l=\${${__a}_l}" if ! eval "\${${__a}__${__l}+:}"; then eval "${__a}__${__l}=\${__v}" - eval "${__a}_l=\$((\${__l}))" + eval "${__a}_l=\$((\${__l} + 1))" fi } split() -- cgit v0.9.1