commit 1f277d7b0ed0a06b3ae2f24f7dab9075dc94605f
Author: Emanuele Torre <[email protected]>
Date: Fri May 28 09:13:38 2021 +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.
diff --git a/tools.suckless.org/dmenu/patches/non_blocking_stdin/index.md
b/tools.suckless.org/dmenu/patches/non_blocking_stdin/index.md
index c9fcb48c..7213b325 100644
--- 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
bar
baz
" > foo
- # Append some more items
+ # Append some more items
printf %b "food
barn" > 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 "foo
bar
bill" > foo