bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dialog-1.3-20190806: spurious space char appended to menu selection?


From: balducci
Subject: dialog-1.3-20190806: spurious space char appended to menu selection?
Date: Thu, 08 Aug 2019 16:45:40 +0200

hello

am I doing something wrong or is there a problem with
dialog-1.3-20190806 ?

The enclosed test code shows me that 1.3-20190806 appends a space char to
the selection returned by the menu box (making the downstream case
fail to match anything); this wasn't the case until now: eg
1.3-20190728 works without problems (no space appended); same for any
previous version of dialog

thanks a lot for any help

ciao
gabriele

# ----8<----
#!/bin/sh
eval $(resize)
choice=$(dialog --stdout --no-tags \
                --default-item "one" \
                --menu "menu" \
                ${LINES} ${COLUMNS} ${LINES} \
                one "one" \
                two "two" \
                three "three" \
                ;
      )

clear
ascii -s "${choice}"|column -t

# match is found  with 1.3-20190728
# match is not found with 1.3-20190806
case "${choice}" in
    one)    echo  ${choice};;
    two)    echo  ${choice};;
    three)  echo  ${choice};;
esac
exit 0
# ---->8----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]