|
From: | Max Nikulin |
Subject: | Re: FAILED test-ob-shell/bash-uses-assoc-arrays |
Date: | Wed, 24 Apr 2024 23:04:29 +0700 |
User-agent: | Mozilla Thunderbird |
On 24/04/2024 19:54, Ihor Radchenko wrote:
Max Nikulin <manikulin@gmail.com> writes:On 15/04/2024 23:46, Alexander Adolf wrote:FAILED test-ob-shell/bash-uses-assoc-arrays ((should (equal "two" (org-trim (org-babel-execute-src-block)))) :form (equal "two" "three") :value nil :explanation (arrays-of-different-length 3 5 "two" "three" first-mismatch-at 1)) FAILED test-ob-shell/bash-uses-assoc-arrays-with-lists ((should (equal "20 cm" (org-trim (org-babel-execute-src-block)))) :form (equal "20 cm" "50 dl") :value nil :explanation (array-elt 0 (different-atoms (50 "#x32" "?2") (53 "#x35" "?5"))))My guess is that GPLv2 BASH on macOS does not support associative arrays. Perhaps these tests should be skipped if BASH_VERSION is not fresh enough (not supplied by Apple).I guess so. Which bash versions should we cut off?
/usr/share/doc/bash/NEWS.gz
This is a terse description of the new features added to bash-4.0 since the release of bash-3.2. As always, the manual page (doc/bash.1) is the place to look for complete descriptions.
[...]
ii. The shell provides associative array variables, with the appropriate support to create, delete, assign values to, and expand them.
it is consistent with license change discussions https://news.ycombinator.com/item?id=20102597
[Prev in Thread] | Current Thread | [Next in Thread] |