diff options
author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2021-12-12 20:28:39 +0100 |
---|---|---|
committer | наб <nabijaczleweli@nabijaczleweli.xyz> | 2021-12-12 21:13:50 +0100 |
commit | a6ac4cbc4efdb674b022709881751b26eebbb8c1 (patch) | |
tree | 11690a7083fb60c494f71ee4f2767989851be55a /man/systemd-notify.xml | |
parent | f1e6f93372ca2dcee75e3ef0ee6cbe9945cf41f4 (diff) | |
download | systemd-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.xml | 4 |
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 < /tmp/waldo + read -r a < /tmp/waldo systemd-notify --status="Processing $a" # Do something with $a … |