tzselect.ksh fails under ksh, works under bash
If BASH_VERSION is not set, then tzselect.ksh performs a test in which it attmepts to use the select command, to see whether the select command is available: 84: (eval 'set --; select x; do break; done; exit') 2>/dev/null In the case that the shell is not bash, but the select command is available, then the select command reads a line of input. This is confusing for users, who don't even see a prompt. The attached patch fixes this by redirecting input from /dev/null. I also quoted some variables on general principles. --apb (Alan Barrett)
Thanks for reporting that bug; it was introduced as part of the recent attempt to port tzselect.ksh to POSIX sh. I'll install the redirection part of the patch into the experimental version on github. The quoting part of the patch isn't needed, though, and I often prefer omitting unnecessary quoting when that might confuse the reader into thinking that the quoting is needed.
participants (2)
-
Alan Barrett -
Paul Eggert