From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id eL4eCmTZK2YzCgAA62LTzQ:P1 (envelope-from ) for ; Fri, 26 Apr 2024 18:42:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eL4eCmTZK2YzCgAA62LTzQ (envelope-from ) for ; Fri, 26 Apr 2024 18:42:12 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714149732; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=qtGHjn/GlfZ/TIjv3cNwToicr1SCydtbx8VQyRqvH2I=; b=sQy+c1drqBitmtqspwFk9sVflGQM+mPqtvArxcU3x9pebnIk79L6LVzfdzh+qO85Qrc6d0 fLGFGvWWMECV/LOUXUohrRWrQ3uIdAIilZeM6yhbe+OwefD908pjkIBMPZAdYCPFydXSG1 OtUdX1My3PIbQobBbTOw8XryWZi6jCAcAjdkTlqEQ+xZsapThKoTHR+pPrQG3//6NKwKdi O66HFT2F4uUZf6N2IiM5NlVD1LemBiSpF/w5iOMnrHQWrtM+z96LBrrdcp5TJIHU9QnAYU kvdYgPQPeuwCWKgXejpUGE2hDfeGpNA09jtBjFdpMHywwTvgM3H9un3voyPqkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714149732; a=rsa-sha256; cv=none; b=SVqY7lHikU1jFNLBqcC9KTJLOSHIS1GqEs7WxUkO3T8nRx0dfyU+zFcOtIs8G7A6IR1Nqg P4rFrHY9oR81IJhYDnAKhrmuiGmwWMTB6ORVEEw2CA0fdUFxAezMmqmgFRVBuJbsZ9LNvE 0ERJK10l2aMS4dNFKP5cJ0fUXAzRMyQq9sjgF1DRDwwXzfNoSqzY1VhLV4RpdWMrmPzstm JcPl3r3v13LD0ZyhZLzoEirDkf6NcsSp2hcXm/CnumuWyNwpe0M8M7WQp7G27PyKtPMhGU kzUV8EP0ZJr0MrinW8lMrRk9u8jIIx/nsZeBLe7KwnxBG2NzWehDReu+1CJNIw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F1BBA66B04 for ; Fri, 26 Apr 2024 18:42:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0OdR-000883-DK; Fri, 26 Apr 2024 12:41:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s0OdP-00087k-Ir for emacs-orgmode@gnu.org; Fri, 26 Apr 2024 12:41:15 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s0OdN-0001GE-Jx for emacs-orgmode@gnu.org; Fri, 26 Apr 2024 12:41:14 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1s0OdJ-0004Jg-Sg for emacs-orgmode@gnu.org; Fri, 26 Apr 2024 18:41:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: FAILED test-ob-shell/bash-uses-assoc-arrays Date: Fri, 26 Apr 2024 23:41:03 +0700 Message-ID: References: <486d2b818b62c71b3f307305c06c4318@condition-alpha.com> <871q7cypxl.fsf@localhost> <00aa9bf72dc93f6554bdd236fdfba192@condition-alpha.com> <87y19hbb05.fsf@localhost> <8b72386d118136210f27b553f0a13066@condition-alpha.com> <87cyqtyzgt.fsf@localhost> <91dfeb0fed1a1fe0564e5eb9b95a409d@condition-alpha.com> <875xw6ex9h.fsf@localhost> <93ff1be3-70c3-471b-be75-4b016bee6827@gmail.com> <87o79wv0sc.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird Content-Language: en-US, ru-RU In-Reply-To: <87o79wv0sc.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.55 X-Spam-Score: -0.55 X-Migadu-Queue-Id: F1BBA66B04 X-Migadu-Scanner: mx13.migadu.com X-TUID: Ig6093g7/PPk On 26/04/2024 18:08, Ihor Radchenko wrote: > Max Nikulin writes: > >>>> 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). > > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e4ab416fc Feature detection should be more reliable. ;; Old GPLv2 BASH in macOSX does not support associative arrays. (if-let ((bash (executable-find "bash"))) (eq 0 (process-file bash nil nil nil "-c" "declare -A assoc_array"))) Even version check may be performed by shell (if-let ((bash (executable-find "bash"))) (eq 0 (process-file bash nil nil nil "-c" "[ ${BASH_VERSINFO[0]} -ge 4 ]")))