From 03648310717e788464e40964f7356d4b5b2674f8 Mon Sep 17 00:00:00 2001 From: João Lucas Date: Sat, 4 Jan 2025 00:13:04 +0000 Subject: posix compliance: replace `echo -e` --- anypinentry | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anypinentry b/anypinentry index 8808939..4cf5c0d 100755 --- a/anypinentry +++ b/anypinentry @@ -22,7 +22,7 @@ AP_YES="Yes"; AP_NO="No"; prompt_action='dmenu -P -p "$AP_PROMPT"'; -confirm_action='echo -e "$AP_YES\n$AP_NO" | dmenu -p "$AP_PROMPT"'; +confirm_action='printf "%s\n%s\n" "$AP_YES" "$AP_NO" | dmenu -p "$AP_PROMPT"'; display_error_action='notify-send -a "Pinentry" "$AP_ERROR"'; # :: Prompt string (default if empty) @@ -212,7 +212,7 @@ Options: CMD will be executed by sh(1). The defaults are: prompt ='dmenu -P -p "$prompt_string"'; -confirm ='echo -e "$AP_YES\n$AP_NO" | dmenu -p "$prompt_string"'; +confirm ='printf "%s\n%s\n" "$AP_YES" "$AP_NO" | dmenu -p "$prompt_string"'; error-command ='notify-send -a "Pinentry" "$error__password_mismatch"'; Standard pinentry options -- cgit v1.3.1