summaryrefslogtreecommitdiff
path: root/man/systemd-notify.xml
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2021-12-12 20:28:39 +0100
committerнаб <nabijaczleweli@nabijaczleweli.xyz>2021-12-12 21:13:50 +0100
commita6ac4cbc4efdb674b022709881751b26eebbb8c1 (patch)
tree11690a7083fb60c494f71ee4f2767989851be55a /man/systemd-notify.xml
parentf1e6f93372ca2dcee75e3ef0ee6cbe9945cf41f4 (diff)
downloadsystemd-a6ac4cbc4efdb674b022709881751b26eebbb8c1.tar.gz
man/sd-notify: /bin/bash -> /bin/sh, read -> read -r in example
Diffstat (limited to 'man/systemd-notify.xml')
-rw-r--r--man/systemd-notify.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/man/systemd-notify.xml b/man/systemd-notify.xml
index 3fed92ef0e..1327d23155 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:</para>
- <programlisting>#!/bin/bash
+ <programlisting>#!/bin/sh
mkfifo /tmp/waldo
systemd-notify --ready --status="Waiting for data…"
while : ; do
- read a &lt; /tmp/waldo
+ read -r a &lt; /tmp/waldo
systemd-notify --status="Processing $a"
# Do something with $a …