man/sd-notify: /bin/bash -> /bin/sh, read -> read -r in example
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Sun, 12 Dec 2021 19:28:39 +0000 (20:28 +0100)
committerнаб <nabijaczleweli@nabijaczleweli.xyz>
Sun, 12 Dec 2021 20:13:50 +0000 (21:13 +0100)
man/systemd-notify.xml

index 3fed92ef0eedf40a2526fda18e290f83dd21fa60..1327d2315508f0bd597b5160ce47a98b496e3d45 100644 (file)
       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 …