From 52a2aa5d4168f4f82ee62b778f4f57dc4d1a975b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Tue, 21 Sep 2021 19:58:36 +0300 Subject: menuman: fix redirect to stderr --- dotfiles/.local/bin/menuman | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dotfiles/.local/bin/menuman b/dotfiles/.local/bin/menuman index 30a5424..98efc02 100755 --- a/dotfiles/.local/bin/menuman +++ b/dotfiles/.local/bin/menuman @@ -11,9 +11,9 @@ issearch= isterminal= printusage() { - echo "Options:" >2 - echo " -t use in terminal with fzf otherwise launch bemenu." >2 - echo " -s search with apropos." >2 + echo "Options:" >&2 + echo " -t use in terminal with fzf otherwise launch bemenu." >&2 + echo " -s search with apropos." >&2 } while getopts "st" curopt "$@"; do @@ -38,7 +38,7 @@ if [ ! -z "$issearch" ]; then query="$(echo "" | bemenu -p "Enter apropos query:" -i --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")" fi if [ -z "$query" ]; then - echo "Empty query" >2 + echo "Empty query" >&2 exit 1 fi list="$(apropos "$query")" -- cgit v1.2.3