From a6ac4cbc4efdb674b022709881751b26eebbb8c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sun, 12 Dec 2021 20:28:39 +0100 Subject: [PATCH] man/sd-notify: /bin/bash -> /bin/sh, read -> read -r in example --- man/systemd-notify.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 …