From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +BY9Jy/plmPQ0QAAbAwnHQ (envelope-from ) for ; Mon, 12 Dec 2022 09:41:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QCb6Ji/plmNHbwEAauVa8A (envelope-from ) for ; Mon, 12 Dec 2022 09:41:19 +0100 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 A5D16477B0 for ; Mon, 12 Dec 2022 09:19:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4e1H-0004Iy-JC; Mon, 12 Dec 2022 03:18:41 -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 1p4e13-0004I4-3z for emacs-orgmode@gnu.org; Mon, 12 Dec 2022 03:18:26 -0500 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4e10-00086i-UQ for emacs-orgmode@gnu.org; Mon, 12 Dec 2022 03:18:24 -0500 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-1445ca00781so7537187fac.1 for ; Mon, 12 Dec 2022 00:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=x9puh7l9IGh8Pm5zf+nXa80Vbjin1BXVJBvTRYCo93M=; b=NU6EfRXU2fCpELAxpNGNRDH2CJd0B0ZRHhUXPvJAVvDEdxmyViRfm44QZXB6/SHe0+ Nu5TVCr5/rvaxBYCNx1H0dtJ3DI3RNr/Ii5lyhL8R2wzTS+aQH8y02EClnlFhu5xpjSq Zgz+EpVqDZQiedGwFIqy5UzBJ7A/OVz4T3jI3oP7lWxHKHFB034WGmMXNMq/6Vk8PH/2 vrFaphBKo8aD1q2FfZeQ9ve1ELaXtvrRdo9yeMedkl6IM76VpCB0TONde6Zr5Ve7MFUZ LzjqJLQE3jBx7N77FeNBJgYfIi+7XrZG46czWzHP1QF4lE3IzmUdHDwWg3wrfoSp673c ciBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=x9puh7l9IGh8Pm5zf+nXa80Vbjin1BXVJBvTRYCo93M=; b=PTajqCfgTmX9MbAmTx6fwhE2ME1FdRonwoXc8jYdmlPDfwYvuPNInJ9K0cnqAF6Z/I oJ2HTSeUAiavrDIOMHarl0zxRrTQ22Fzys2nGzcoeqMpr5lK7RjuF1gQs/u7VGyA6EAz n0O1kq0mSOE1m9EuQAHuZA5/DRPG7PdGsAagYTDuNbhRQRHo8bDPcM6ds4WdAH7+6up0 f+WS2Us2L03J6TlHbqIy7ZVUb+YmATZ7BUJYAx5MOFgw0h37wg5vLKIjGlinWU3tSy4M t5vMgJ+kjWCG+Wg8LsHIfAJEv6Y+2l666BVw/Q/eOEUJoZD/odcPhXR1pSLTR0sdjU9a FUqg== X-Gm-Message-State: ANoB5plx3m8ZvvNY1WgjYduf1kTRUaOCCdZlrdHM9aeAnenP5w9/2lZx UH4cwJIeVQiOi91f5kMtXA+Hy3ATadXTHSTXTFkRwZwGYFE= X-Google-Smtp-Source: AA0mqf6LqWSZN60EIKX4eDBcYLC8PHSlOPsThCbel/Me2+G/jzhlCortByW48W0C90xwUqSp99q0fihRvzI+npsDrfc= X-Received: by 2002:a05:6870:5895:b0:148:47ab:6a40 with SMTP id be21-20020a056870589500b0014847ab6a40mr164968oab.5.1670833098282; Mon, 12 Dec 2022 00:18:18 -0800 (PST) MIME-Version: 1.0 From: Vlastimil Vondra Date: Mon, 12 Dec 2022 09:17:44 +0100 Message-ID: Subject: org-babel shell in windows not finishing command To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000004d5c0305ef9d25dd" Received-SPF: pass client-ip=2001:4860:4864:20::34; envelope-from=vlastimil.vondra@gmail.com; helo=mail-oa1-x34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670833163; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=x9puh7l9IGh8Pm5zf+nXa80Vbjin1BXVJBvTRYCo93M=; b=O59ue6J63jhgJSyoVEjLTNU/6Nq3TAO04mEhkFZR86nQVKX0fTTVYrmMKxjLSRwH0+1A+K YczCwUpF/8gNryBKJstJ+QpmmLGWcVyGyFfUd/vA0bztWdnrsxGKGhIuBICQYqJzLI+INn gulREs1YXNiTtUjgeEANyTZPdkMFk5D9cBVLpoVmeMEsnyInv0nsP7i2TVE7tBK61UhGmG qSRMO5rvkeURi4FA1JmCud268MfmMMw9/yGVq5F6qqIp3Bcshh2Qo8bzNr8EedksnnnFTr l2Uyqk7FiMwU3g3B2814BmGTtNTSAgDVeRruW9eMZzKvsCdJI4QQgp+BSbdL4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NU6EfRXU; 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=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670833163; a=rsa-sha256; cv=none; b=rGHUqhvVSnsGkZHqx54QJzmmLaJnN61IgjhuOB8oGIuqm+sVyQN80fUJymc70bnw5XzOhh eg3/DuVktGwV7eMjGNBMOA423Nv5fceksGMJcH+VmixMSPVEyC+qIZSRkw8WoJVSX66XRK xpnlL0WSJonAGAUNFGzDDtJmHd1/lvovEcD2rtLT3T1ej5bGZrtCfPvEfNbAYKL8D/Pu11 EiFS17dhFt7iB3fg5R4tJQB9oEqAuQS56YTqMt+XGA2vNkvi8mFNLXf8cdGrBXQhvWaeb7 p56Y9PAYvo2iJgQWylm4hoi0v2vWVzujxT9HfbYU3KhPD3ZovgVWRQUXEb3ngg== X-Migadu-Spam-Score: -10.70 X-Spam-Score: -10.70 X-Migadu-Queue-Id: A5D16477B0 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NU6EfRXU; 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=pass (policy=none) header.from=gmail.com X-TUID: UdLZ9qRqF87L --0000000000004d5c0305ef9d25dd Content-Type: text/plain; charset="UTF-8" Hello, I'm trying to run some shell block code (in windows they should evaluate in cmd). But when executing org-babel block code, it seems that org-babel is not finishing the last command. If I run: #+begin_src shell :results output echo %cd% echo "hello" #+end_src then the output is #+RESULTS: : Microsoft Windows [Version 10.0.19045.2251] : (c) Microsoft Corporation. All rights reserved. : : c:\Users\johndoe\Org>echo %cd% : c:\Users\johndoe\Org : : c:\Users\johndoe\Org>More? More? means cmd is expecting some additional command (creating multiline statemens). In cmd typying either ( or ^ result in More?, but I don't know what is causing this error in org-babel. Interestingly, if run like this: #+begin_src shell :results output :session shell echo "%cd%" echo "hello" #+end_src I'm getting the right output: #+RESULTS: : Microsoft Windows [Version 10.0.19045.2251] : (c) Microsoft Corporation. All rights reserved. : echo "%cd%" : "c:\Users\johndoe\Org" : echo "hello" : "hello" But only when run for the first time, if running for second time, I'm getting this: #+RESULTS: : : cd%" : "c:\Users\johndoe\Org" : echo "hello" : "hello" Any way how to fix it either with :session shell command or without? Best regards, Vlastimil Vondra --0000000000004d5c0305ef9d25dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello,

I&#= 39;m trying to run some shell block code (in windows they should evaluate in cmd). But when executing org-babel block code, it seems that org-babel=20 is not finishing the last command. If I run:

#+begin_src=
 shell :results output
  echo %cd%
  echo "hello"=20
#+end_src

then the output is<= /p>

#+RESULTS:
: Microsoft Windows [Version 10.0.19045.2251]
: (c) Microsoft Corporation. All rights reserved.
:=20
: c:\Users\johndoe\Org>echo %cd%
: c:\Users\johndoe\Org
:=20
: c:\Users\johndoe\Org>More?=20

More? means cmd is expecting some additio= nal command (creating multiline statemens). In cmd typying either ( or ^ result in More?, but I don't know what is causing this error in = org-babel. Interestingly, if run like this:

#+begin_src =
shell :results output :session shell
  echo "%cd%"
  echo "hello"
#+end_src

I'm getting the= right output:

#+RESULTS:
: Microsoft Windows [Version 10.0.19045.2251]
: (c) Microsoft Corporation. All rights reserved.
: echo "%cd%"
: "c:\Users\johndoe\Org"
: echo "hello"
: "hello"

But only when run f= or the first time, if running for second time, I'm getting this:

#+RESULTS: :=20 : cd%" : "c:\Users\johndoe\Org" : echo "hello" : "hello"

Any way how to fix it either with :session shell command or without?

= Best regards,
Vlastimil Vondra

--0000000000004d5c0305ef9d25dd--