zenity --info dialog is unstable
问题 I have a script that randomly generates passwords, I have modified it to display in a GUI using zenity . When I use the original script, I can produce random passwords of any length the user chooses (I tested with 50,000). Here's the code : #!/bin/bash number=10 echo "hello" echo "Please enter your number: $number" read newnumber # read newnumber [ -n "$newnumber" ] && number=$newnumber MATRIX="0123456789<?/_+-!@#$%^&*>ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" # Password will