我想显示一条信息,其中包含使用wh的度数符号。我尝试了这些,但似乎都没有用:

whiptail --title "Weather Info" --msgbox '\N{U+00B0}'  17 60 3>&1 1>&2 2>&3
whiptail --title "Weather Info" --msgbox "\N{U+00B0}"  17 60 3>&1 1>&2 2>&3
whiptail --title "Weather Info" --msgbox "\xc2\xb0"  17 60 3>&1 1>&2 2>&3
whiptail --title "Weather Info" --msgbox '\xc2\xb0'  17 60 3>&1 1>&2 2>&3


这是不可能的吗?

最佳答案

无论是鞭尾还是bash都无法帮助您逃脱。您可以使用bash的内置回显来验证这一点。

如果您使用文字度数符号而没有转义的任何帮助,则可以使用:

whiptail --title "Weather Info" --msgbox '°'  17 60 3>&1 1>&2 2>&3

09-25 23:53