An�bal Monsalve Salazar dixit: >On your system /bin/sh points to lksh. What could be used in lksh
You mean in POSIX sh ;-) lksh by the way is the “legacy” and “long int” version of mksh (mksh itself uses a 32-bit int for arithmetics even on 36-bit and 64-bit OSes, as guarantee for scripts; lksh follows POSIX in using the host C “long” data type). >instead of read -p? http://pubs.opengroup.org/onlinepubs/9699919799/utilities/read.html I had to actually “man bash” to find out what read -p does there. - read -p "`gettext 'Choose'` 1-$i [$simple]: " -r selected + echo -n "$(gettext 'Choose') 1-$i [$simple]: " + read -r selected This is not POSIX (“echo -n” isn’t), but guaranteed by Debian Policy §10.4 for every /bin/sh on Debian. In POSIX, you can do this instead: - read -p "`gettext 'Choose'` 1-$i [$simple]: " -r selected + printf '%s' "$(gettext 'Choose') 1-$i [$simple]: " + read -r selected (Never forget the %s!) But this is slower and actually less portable. bye, //mirabilos -- FWIW, I'm quite impressed with mksh interactively. I thought it was much *much* more bare bones. But it turns out it beats the living hell out of ksh93 in that respect. I'd even consider it for my daily use if I hadn't wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org