From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id Zo5vEZlpomWbWgEAkFu2QA (envelope-from ) for ; Sat, 13 Jan 2024 11:44:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id oB9cDJlpomVTGAEAqHPOHw (envelope-from ) for ; Sat, 13 Jan 2024 11:44:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=DIcQAx8U; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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=none ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705142681; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:cc: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:dkim-signature; bh=P831s83f+QfsULdUXp6CmPUXTgKl+kOdSRNIPx52fFg=; b=VQUjGYcZOT3Kb/J2wVqRRTaiX9XUWDLA1B0PhIL+FJTkxUR05nBHQc1SJrX/eCE0h/fyy0 dMLFoSuOt0t8SMyApXlEXLWwajKJkFg6Hq4+HOa9IakU69F7U+4yMCWIIEBqRWkYyet4AB CgSpwfInTec/wICJv0aAN/wG4nK2z231iAvGhH5HopzuysLcu4VPEp2lJ3rJD3aWsVpO3K rL3OnnXdCpaqxrdiw7tQsnRCoreXVtVRZrZoAYlPfL9WC4q4sVlDZd7YMKNE/Qoa1zyh/U 1h+vSe2vTOCW96YDuetnRe/gorY3GDAKCDhXKQtvfRF6B7sk1mPRXXi1JtdaXg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=DIcQAx8U; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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=none ARC-Seal: i=2; s=key1; d=yhetil.org; t=1705142681; a=rsa-sha256; cv=pass; b=P/XwgHdOE2m9OAX3qDR3bQEWkgrVFWUZfY7REw21ywKfz9vG6DEw3AEfwW0nnZclsu8EBu mWgnwhf6M3fOnKxsvEjYn8z6pEvw6WZa1BawEE9XZCf7PsBT6LKITEnNiS0fUz1THktq14 zfXlpUIZnti+kej3JOli8Mgs93OBiqRIwkVjPcsThnx6DTd5H9AFOQaxc8mcvzRfMmSUIk na9vCZ9Jgn0COA9eAENk9dU8KAR+wdrslTO3clbR3lq4tiumWSZYbkDu2A97OsONNbnjef +4AnrEK1nqhcYDqVqKsMXXdIGCIJ9QBIKpVVNQSgmY/TLwLcwLXc0ZWKBA9cuQ== 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 CAB443CC78 for ; Sat, 13 Jan 2024 11:44:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rObUe-0005nE-Ao; Sat, 13 Jan 2024 05:44:00 -0500 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 1rObUc-0005n0-1s for emacs-orgmode@gnu.org; Sat, 13 Jan 2024 05:43:58 -0500 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rObUZ-0001al-Cn for emacs-orgmode@gnu.org; Sat, 13 Jan 2024 05:43:57 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1705142629; cv=none; d=zohomail.com; s=zohoarc; b=jl1IneLVJfoGt8vAHHlmh40o1oAEa1v23a0Rt81ejqehLI8YJ1GHav2ioZ/PwSHeBvTwBb0N6npIYmF8R4LWAjLO1ALqH/cH6l5hpgsBURdzjlHrf1mxrnzPxEbO4fKGoVK1nQvg/rUU/16QKUdxHok7Hcw4/254AMdqarBZN8k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705142629; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:Message-Id:Reply-To:To; bh=P831s83f+QfsULdUXp6CmPUXTgKl+kOdSRNIPx52fFg=; b=dJIhKAheWu0bR9nS8ql5+JzmBYUyqxWxBTWe0s8R4hKeyx2x7h06Mdl0/f0RoE7zIAA8Nkq4nL/Ba/uRhW/KdgykhTFQQEPcL0Fd2OHzzLAKGmauzf3MI/SJBrL1U7VpiInfHAjMF1ZglQnymkLlPrzdBJ2wo3SudvFWLJmoRvE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=excalamus.com; spf=pass smtp.mailfrom=matt@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1705142629; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:Date:From:From:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:To; bh=P831s83f+QfsULdUXp6CmPUXTgKl+kOdSRNIPx52fFg=; b=DIcQAx8UDCulWsl0c0J2k0UNf8TPc+nZL1E/Z5RTTHeeGKUwZrduYJ7XJdDHZWXp zkbNJAVGyFLLTEGVD8QSgyss6P4uAkDoLBMNVgzhmjgNV5o+WD93sN9YDsSeUhRDCgB 1sdQPmTa92fz6JJai53GzBdh++QlLCoxnhepVBOw= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1705142628340376.6619553543218; Sat, 13 Jan 2024 02:43:48 -0800 (PST) Date: Sat, 13 Jan 2024 11:43:48 +0100 From: Matt Cc: "emacs-orgmode" Message-ID: <18d026bafdb.10d3598f11341508.236836529439359427@excalamus.com> In-Reply-To: <18cfa388d12.f0069ffe919377.6846036599039377431@excalamus.com> References: <18cfa388d12.f0069ffe919377.6846036599039377431@excalamus.com> Subject: Re: ob-shell: proposal to remove "posh" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.188.15; envelope-from=matt@excalamus.com; helo=sender4-op-o15.zoho.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: CAB443CC78 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.50 X-Spam-Score: -4.50 X-TUID: efV9ifwMMTEZ ---- On Thu, 11 Jan 2024 21:30:59 +0100 Matt wrote ---=20 > The change on August 26, 2022 should have caused a breaking error for so= meone using the "Policy-compliant Ordinary SHell." The prompt for "posh" i= n "org-babel-shell-set-prompt-commands" is valid PowerShell syntax (AFAIKT)= and invalid bash/dash syntax: >=20 > function prompt { "org_babel_sh_prompt> " } >=20 > It's not clear to me what this would do in the "Policy-compliant Ordinar= y SHell."=20 It would cause an error. I was able to build the "Policy-compliant Ordinary SHell" on Guix using: #+begin_src guile (use-modules (guix packages) (guix download) (guix build-system gnu) (gnu packages autotools) (gnu packages perl) ((guix licenses) #:prefix license:)) (define-public posh (package (name "posh") (version "0.14.1") (source (origin (method url-fetch) (uri (string-append "https://salsa.debian.org/clint/posh/-/archive/debian/" version "/posh-debian-" version ".tar.gz")) (sha256 (base32 "070xnn996cjnc5yzp5819y36sgfikkrplhri4kx5r36h1fmp641d")))) (native-inputs (list autoconf automake perl)) (build-system gnu-build-system) (home-page "https://salsa.debian.org/clint/posh") (synopsis "Policy-compliant Ordinary SHell") (description "Policy-compliant Ordinary SHell posh is a stripped-down version of pdksh that aims for compliance with Debian's policy, and few extra features.") (license (list license:gpl2+)))) posh #+end_src The result is: ahab@pequod /gnu/store/64wiqdp9lqjgsz0jg1v1sq2b3afincrb-posh-0.14.1/bin$ ./= posh $ function prompt { "org_babel_sh_prompt> " } ./posh: function: not found This is expected because "function" is not a keyword in the "Policy-complia= nt Ordinary SHell." According to the man page: #+begin_quote name () command Defines the function name. See Functions below. Note that redirections specified after a function definition are performed whenever the function is executed, not when the function definition is executed. -- https://manpages.debian.org/bookworm/posh/posh.1.en.html #+end_quote So, yes, indeed, commit a35d1636 introduced a breaking change for the "Poli= cy-compliant Ordinary SHell." -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at=C2=A0https://liberapay.com/org-mode