From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UAvuFdeaE2RRnwAASxT56A (envelope-from ) for ; Thu, 16 Mar 2023 23:40:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sM+hFdeaE2T6fwEAauVa8A (envelope-from ) for ; Thu, 16 Mar 2023 23:40:23 +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 EC2113E4F9 for ; Thu, 16 Mar 2023 23:40:22 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=icloud.com header.s=1a1hai header.b=SNZqfH3a; dmarc=pass (policy=quarantine) header.from=icloud.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679006423; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=vIKO1UwwgBZA7BDnmLYU7+TgpazVTNAOQKfBaE4tHwo=; b=XxzmA1nM6tL7kX8NaYoENCADx6BROE+EQGhMHIbzwaaF06W0gpSKH8U/tlotVXsROX4jjW PcCC9VAlelf1r8ntEAAQL43MN18BT9s5nJ/Gx9/KLmjIFmOejA6bYmY8sQUzTqqlVRMZjB smhvUmDJsITxn2OTnL0zDcaZ+WGwUzpE4dZ7O5spIrJVmgvzB6t1HwamV6SZZ4QO+Dw2ui FhSehazmgEnHT6PcJvwZ1Hdy7T+sWEIGQmQuFb5ALq1B+ei9DDmpEPFtolKgeZmra9M8E6 yJRWhvQWgOehXBJeZ/b3lFatpjr3esGpaem4KM5a+9Qu8MTOL4/FAP/0Ck9sXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=icloud.com header.s=1a1hai header.b=SNZqfH3a; dmarc=pass (policy=quarantine) header.from=icloud.com; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679006423; a=rsa-sha256; cv=none; b=k8xl95KvlM23OYpx9ZNyyHDuj/Ek7J3v6tj609PpQoWWeRyCHbIGe9a3kmKiK1RSssQyi1 BnDwvePEnCUyUJ/tRc/wcY+8EeKGMLGTd+VTfj5AAENB47JYRj/pJlnhXzRHYTQbPXJHWM SPoZGEhk9IRLPjXhJy3It44dPReCUNhcgQWf1u+aS8LJaiFAsya6fULv7JtJO9jlo7YXVz JQ2jIZWY6Mypg5wQq893d8zQzwCQ4uBOVJ6Cxc+tierYTxZMlLX8Pi9eB5CiLm2FCA7Ukb T6SsFOp3PGAoWlMrUZhnci7zS5EmVax5Vqgd+A+l7ZZcWokVnVilRtqNf5TZLQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcwFv-0007F6-2x; Thu, 16 Mar 2023 18:39:31 -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 1pcwFt-0007Ei-4l for emacs-orgmode@gnu.org; Thu, 16 Mar 2023 18:39:29 -0400 Received: from qs51p00im-qukt01071901.me.com ([17.57.155.8]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcwFr-0002CL-DY for emacs-orgmode@gnu.org; Thu, 16 Mar 2023 18:39:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1679006366; bh=vIKO1UwwgBZA7BDnmLYU7+TgpazVTNAOQKfBaE4tHwo=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=SNZqfH3aW2JJ6ObIKL9a9mqOgifYgX8xXqnCzi4DeZSSWOEvwW/nmEkv9wnjRkkEQ sEQ+jrNewUOX+SUeVi5KK7CVx+VpETHARZ00gX36UMW5Cma7ccRH9WaRutDXFp4hOS U675ZrTe7snbSakEOyHR5A74QHSpHuMndzynoxJpWSXcr5kdV1avaa66ImSWnt/EUz APKEMpc7UQ6ESlQieWa/frobPqMAEnAu6d2sApK5xxD/gwOdKnEAgX4CtpOCZdDGty akP0hRyk8nJyPOEAFujxY6LkouQ+frweIzZhPlbS8t+nP0ZlTWPZhkjXSEWr9A2Xl3 9CnJ/F9UHCt3w== Received: from smtpclient.apple (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01071901.me.com (Postfix) with ESMTPSA id 0D29C62815FF for ; Thu, 16 Mar 2023 22:39:25 +0000 (UTC) From: suarezmiguelc@icloud.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Babel zip after exporting file Message-Id: Date: Thu, 16 Mar 2023 23:39:13 +0100 To: emacs-orgmode@gnu.org X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Proofpoint-GUID: u_INN7hQcMrJ5nc4-H8D3jGpnYFbPnX3 X-Proofpoint-ORIG-GUID: u_INN7hQcMrJ5nc4-H8D3jGpnYFbPnX3 X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.790,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-01-12=5F02:2020-02-14=5F02,2022-01-12=5F02,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 clxscore=1015 malwarescore=0 phishscore=0 mlxscore=0 mlxlogscore=849 adultscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2303160170 Received-SPF: pass client-ip=17.57.155.8; envelope-from=suarezmiguelc@icloud.com; helo=qs51p00im-qukt01071901.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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: X-Migadu-Queue-Id: EC2113E4F9 X-Spam-Score: -7.98 X-Migadu-Spam-Score: -7.98 X-Migadu-Scanner: scn0.migadu.com 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-TUID: whw51/qpjrag Hello Emacs org-mode community, I=E2=80=99m trying this example: ** index.js :PROPERTIES: :header-args: :tangle index.js :post-tangle (shell-command-to-string = "zip index.js.zip index.js && rm index.js") :END: First endpoint example: #+begin_src js exports.handler =3D async (event, context) =3D> { console.log('Received event:', JSON.stringify(event, null, 2)); return { statusCode: 200, headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ message: 'Hello, world!' }) }; }; #+end_src What I want is to: 1. Tangle the index.js file 2. Zip it as index.js.zip 3. Delete the raw code index.js The thing is that, the command inserted in :post-tangle is executed = before the creation of the file, so it only works if the file already = exists, so: - First run, file doesn=E2=80=99t exist, only index.js is generated. - Second run, zip file appears, index.js is intact since the rm index.js = command ran but then index.js was generated again. How should I debug this?=