commit 1f277d7b0ed0a06b3ae2f24f7dab9075dc94605f
parent 158dcebd12df1ffbe70ef011d5a115385e9c6166
Author: Emanuele Torre <torreemanuele6@gmail.com>
Date: Fri, 28 May 2021 09:13:38 +0200
tools.suckless.org: remove zsh-ism in example.
`do' requires at least one command after it in POSIX sh and bash.
`do;' is invalid in most shells, but zsh.
The `;' was unnecessary so I just removed it.
I also quoted a command substitution that was not quoted to avoid
problems in case `xdotool' is not installed.
And I also removed/added some whitespace to clean up the file.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tools.suckless.org/dmenu/patches/non_blocking_stdin/index.md b/tools.suckless.org/dmenu/patches/non_blocking_stdin/index.md
@@ -11,11 +11,11 @@ patch, so that you can use stdout to feed stdin.
Example:
# Make a fifo and read from it for dmenu's input
mkfifo foo
- while true; do; cat foo; done | dmenu -w $(xdotool getactivewindow) -l 10
-
+ while true; do cat foo; done | dmenu -w "$(xdotool getactivewindow)" -l 10
+
# Append some items
printf %b "foo\nbar\nbaz\n" > foo
- # Append some more items
+ # Append some more items
printf %b "food\nbarn" > foo
## nonblockingstdincontrol variant
@@ -35,7 +35,7 @@ Supported Control Characters:
Example:
# Make a fifo and read from it for dmenu's input
mkfifo foo
- while true; do; cat foo; done | dmenu -w $(xdotool getactivewindow) -l 10
+ while true; do cat foo; done | dmenu -w $(xdotool getactivewindow) -l 10
# And then separately, load a first set of options:
printf %b "\ffoo\nbar\nbill" > foo