GNU bug report logs -
#76243
[shepherd] Lines not ending in #\newline are not logged
Previous Next
Reported by: Tomas Volf <~@wolfsden.cz>
Date: Wed, 12 Feb 2025 23:43:01 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 76243 in the body.
You can then email your comments to 76243 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#76243
; Package
guix
.
(Wed, 12 Feb 2025 23:43:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tomas Volf <~@wolfsden.cz>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 12 Feb 2025 23:43:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 #<<process> 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 #<<process> 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.
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Wed, 26 Feb 2025 16:36:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Tomas Volf <~@wolfsden.cz>
:
bug acknowledged by developer.
(Wed, 26 Feb 2025 16:36:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 76243-done <at> debbugs.gnu.org (full text, mbox):
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.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 27 Mar 2025 11:24:16 GMT)
Full text and
rfc822 format available.
This bug report was last modified 43 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.