From: наб Date: Sun, 12 Dec 2021 19:28:39 +0000 (+0100) Subject: man/sd-notify: /bin/bash -> /bin/sh, read -> read -r in example X-Git-Tag: v250-rc3~57^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6ac4cbc4efdb674b022709881751b26eebbb8c1;p=thirdparty%2Fsystemd.git man/sd-notify: /bin/bash -> /bin/sh, read -> read -r in example --- diff --git a/man/systemd-notify.xml b/man/systemd-notify.xml index 3fed92ef0ee..1327d231550 100644 --- a/man/systemd-notify.xml +++ b/man/systemd-notify.xml @@ -166,13 +166,13 @@ after having set up its communication channel. During runtime it sends further status updates to the init system: - #!/bin/bash + #!/bin/sh mkfifo /tmp/waldo systemd-notify --ready --status="Waiting for data…" while : ; do - read a < /tmp/waldo + read -r a < /tmp/waldo systemd-notify --status="Processing $a" # Do something with $a …