~mil/mepo-devel

posix compatibility: remove use of ansi-c quoting v1 SUPERSEDED

nycex: 1
 posix compatibility: remove use of ansi-c quoting

 1 files changed, 3 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/mepo-devel/patches/42987/mbox | git am -3
Learn more about email & git

[PATCH] posix compatibility: remove use of ansi-c quoting Export this patch

---
Before this patch, the menu did not work for a user using e.g. dash as their /bin/sh.
 scripts/mepo_ui_helper_menu.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/mepo_ui_helper_menu.sh b/scripts/mepo_ui_helper_menu.sh
index f72236b..9f9b808 100755
--- a/scripts/mepo_ui_helper_menu.sh
+++ b/scripts/mepo_ui_helper_menu.sh
@@ -44,9 +44,11 @@ inputzenity() {
  else
    OPTS="$(cat)\nType Custom"
    OPTS="$(printf %b "$OPTS" | tr -d \" | awk NF)"
    newline="$(printf '\nx')"
    newline="${newline%x}"
    RESULT="$(
      echo "$OPTS" |
      xargs -d$'\n' zenity $(zenitydims 0.8 0.8) --title "Select an entry" --list --column=Selection --text "$PROMPT"
      xargs -d"$newline" zenity $(zenitydims 0.8 0.8) --title "Select an entry" --list --column=Selection --text "$PROMPT"
    )"
    if [ "$RESULT" = "Type Custom" ]; then
      TEXTINPUT=1 inputzenity
-- 
2.41.0