From unknown Sun Aug 17 00:57:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#76243 <76243@debbugs.gnu.org> To: bug#76243 <76243@debbugs.gnu.org> Subject: Status: [shepherd] Lines not ending in #\newline are not logged Reply-To: bug#76243 <76243@debbugs.gnu.org> Date: Sun, 17 Aug 2025 07:57:42 +0000 retitle 76243 [shepherd] Lines not ending in #\newline are not logged reassign 76243 guix submitter 76243 Tomas Volf <~@wolfsden.cz> severity 76243 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 12 18:43:01 2025 Received: (at submit) by debbugs.gnu.org; 12 Feb 2025 23:43:01 +0000 Received: from localhost ([127.0.0.1]:38911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiMNg-0002yu-NW for submit@debbugs.gnu.org; Wed, 12 Feb 2025 18:43:01 -0500 Received: from lists.gnu.org ([2001:470:142::17]:38290) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tiMNe-0002yV-Lw for submit@debbugs.gnu.org; Wed, 12 Feb 2025 18:42:59 -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 <~@wolfsden.cz>) id 1tiMNT-0006VL-Ir for bug-guix@gnu.org; Wed, 12 Feb 2025 18:42:48 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1tiMNR-0001AO-Ev for bug-guix@gnu.org; Wed, 12 Feb 2025 18:42:47 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id B55DC35BD3D; Wed, 12 Feb 2025 23:42:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1739403759; bh=xGeEr63IxXOWDF2W+kveYoLfoZPyovdFPtiMR5DQOFY=; h=From:To:Subject:Date; b=CS4VKL5HmD449h4QWyJDA4iKLLKXzpEAePTZAI8na0sYkJwaVN0yoypHiEa1ucOjQ ySmtQVUBoUMwU8oevb3S/vJKMhR7H7wAJOYIMz4KaUiAAse5h/eEhXNzkWrxz3NNF4 zslOvM1wsMMCWYQRStxqA3hkUF9X9OUpr4lq/PUxlmz0twkpg9hwW2JDFsALB4DGwK XVUaP3A5+KPlVkyNCWVnTMadom+pf7uc5F6wl0tj3JIIPlzDHLi2y7DX4jCbvD982H phcnv2BH60u72Kb79dKSX3udjYla6nKIAsQrT8M5K0B+N1YqNNNqhyroEURCuRnkqh W9mTu5zbXaPucboSj2ZrQWFXJD+jlKnVHnMU5LWRM7mh5Gkhy1EbYfm9aPDlhWI9ql uYo0/MyQwDXBoCx9q19b7EUOnTu0Y6xbzVgTFJk+gSaQR7NbJsHmt4CZrqBl8YT9p7 egKf7kLNhUrkCF8UMrZDmWs3bkU0xjM8PY3d6Fi9bf0FaRqQo2o3KmMcwvoLkq7Ail YlDS/A0Ywaq0xuKGDioXPaUg5R/ocxfSX46uww5OjmiRFzyzNaS8Sz0Nvyge43vhL4 gbHbACpZ/vW5KBOSpoyFFrBqviJXquekFFR+04RAl5/2SxXXeSDBF2fL/1Aky/bZEm 8JAIJbBWiH2ZJU+ehLhZIa6I= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id DA52735BB61 for ; Wed, 12 Feb 2025 23:42:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1739403758; bh=xGeEr63IxXOWDF2W+kveYoLfoZPyovdFPtiMR5DQOFY=; h=From:To:Subject:Date; b=aLr70jLI8lXWjDHawfjNjL4ui9jgrD9Uh6WEFq7E9lM8YKydpNKo+9fvM/3ZZBOnX 6IdBAH17cs6QVaDfmgMjms6sHBQRoP9KiT+Ytk0U2RKalx8ZoNfPvGtoAEET/E7T7+ JeVMQc7+m+70Cm9y+uNvqBC6A4Y2q4xVg+/Y01lBzFI+pupw+AITEUwyYFPbXQAyty wAOticy7toj8cezHL8qkuH8JaU6lXJ+SiiL9cfisQPBei+JtpSF2SVION8haDEGRNO 1/fl6GdxaNfM7/D2aqGN0dGvqWaTgyIHe1WNIjj5V2R4VaJW8n/Kj14tzoIB8O6Ai4 sjytq6TOp5Y/mUSoJWGuw/jZnwyLt3Ykx0pPc8LtgRlMpYDIhOXpzFXBYsp+tFPHdA 35jgpHiKzD+9jTaYbarOzj8v0v+NZ8jKUUDVkmX0Qcbfp59hebgnKBIyfoYJ67dHHE I5OQh/T+qpfXWOk3XpckKhcjorZNYNkFBjziS/33AWfRahvVW3npcuxmQjtbAXb28h m9hu/yeZjnG4uU9aqV/9kLm0wpbDLtDKOXXdd3Yp1DDkCUvqXAK/IVtxf1iRQdBxZ8 n1VRaYThop1SfNzrIliNuzTwdtavqK/XPAPzYC1C59pR7hFq1/2+Exfivg8cWxFqtA 6NzT+mknK8HSQkhJhPWpafP4= From: Tomas Volf <~@wolfsden.cz> To: bug-guix@gnu.org Subject: [shepherd] Lines not ending in #\newline are not logged Date: Thu, 13 Feb 2025 00:42:38 +0100 Message-ID: <87v7teafwx.fsf@wolfsden.cz> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi :) When you execute the following code: --8<---------------cut here---------------start------------->8--- herd spawn transient -- $(which sh) -c 'printf x' --8<---------------cut here---------------end--------------->8--- The `x' is nowhere to be found in the log: --8<---------------cut here---------------start------------->8--- Feb 12 23:39:12 localhost shepherd[1]: Starting service transient-249... Feb 12 23:39:12 localhost shepherd[1]: Service transient-249 started. Feb 12 23:39:12 localhost shepherd[1]: Service transient-249 running with value #< id: 1262 command: ("/run/current-system/profile/bin/sh" "-c" "printf x")>. Feb 12 23:39:12 localhost shepherd[1]: Service transient-249 has been started. Feb 12 23:39:12 localhost shepherd[1]: Service transient-249 has been disabled. Feb 12 23:39:12 localhost shepherd[1]: Transient service transient-249 terminated, now unregistered. --8<---------------cut here---------------end--------------->8--- When you add an extra echo: --8<---------------cut here---------------start------------->8--- herd spawn transient -- $(which sh) -c 'printf x; echo' --8<---------------cut here---------------end--------------->8--- The `x' will be in the log: --8<---------------cut here---------------start------------->8--- Feb 12 23:40:10 localhost shepherd[1]: Starting service transient-250... Feb 12 23:40:10 localhost shepherd[1]: Service transient-250 started. Feb 12 23:40:10 localhost shepherd[1]: Service transient-250 running with value #< id: 1280 command: ("/run/current-system/profile/bin/sh" "-c" "printf x; echo")>. Feb 12 23:40:10 localhost shepherd[1]: Service transient-250 has been started. Feb 12 23:40:10 localhost shepherd[1]: sh[1280] x Feb 12 23:40:10 localhost shepherd[1]: Service transient-250 has been disabled. Feb 12 23:40:10 localhost shepherd[1]: Transient service transient-250 terminated, now unregistered. --8<---------------cut here---------------end--------------->8--- While the current behavior might be strictly speaking valid (Does Shepherd actually specify that it only operates on text files?), having the output in the log in both cases would be better in my opinion. Have a nice day, Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 26 11:35:16 2025 Received: (at 76243-done) by debbugs.gnu.org; 26 Feb 2025 16:35:16 +0000 Received: from localhost ([127.0.0.1]:55092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnKNP-0003t1-IY for submit@debbugs.gnu.org; Wed, 26 Feb 2025 11:35:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40836) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tnKNI-0003or-7L for 76243-done@debbugs.gnu.org; Wed, 26 Feb 2025 11:35:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tnKNA-0001eN-CV; Wed, 26 Feb 2025 11:35:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=xra5n0xq2ym59hYbkRwzTpp14zc9muMiMWqI1bQ/52Y=; b=eX7DtqzfYs+4U9N0SIXf +0DDTI1yXd7nAX1OGFMCtvVO8UbP/PZMC3h/ZPcb5vKVZYuMyuspXbEPIQFgJRd5d4Gsa6oARTgYQ 4eoL4DN6ryapHGiKSPWoB4KZmpWsJ4JhRYG+fUGyvEZQpX17YkCi2YBEf6D7cANYwUJ8eFks6gsA0 tZf2nsAtwgLlRuOSc5O0UGLLU8NkSDnJzaF7nNAj98wCcPWhkSC/vGph20qI08hgbl8f1+wM2uaZu bPO1tCloZbEDe0CETqFuprJhay04/HoALnC3zpkALLoIFbNHFWwlIns+XUkIazAXEjMgMHQsH8GGK QYrRX7oTI2gp1A==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Tomas Volf <~@wolfsden.cz> Subject: Re: bug#76243: [shepherd] Lines not ending in #\newline are not logged In-Reply-To: <87v7teafwx.fsf@wolfsden.cz> (Tomas Volf's message of "Thu, 13 Feb 2025 00:42:38 +0100") References: <87v7teafwx.fsf@wolfsden.cz> Date: Wed, 26 Feb 2025 17:34:36 +0100 Message-ID: <8734g03bs3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76243-done Cc: 76243-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Tomas Volf <~@wolfsden.cz> skribis: > When you execute the following code: > > herd spawn transient -- $(which sh) -c 'printf x' > > > The `x' is nowhere to be found in the log: Fixed in bf996702af39f679e896cb745c6c11516cce94bc. From unknown Sun Aug 17 00:57:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Mar 2025 11:24:16 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator