Re: prompting for a password



On Wed, 25 Feb 2009 19:32:54 -0500, Lao Ming <laomingliu@xxxxxxxxx> wrote:

if [[ -z "$(printf -- "$c" | /usr/bin/tr -d "\r\n")" ]]; then

if [[ -z "$(printf -- "%s" "$c" | /usr/bin/tr -d "\r\n")" ]]; then

Works here using $ bash -version
GNU bash, version 3.2.48(2)-release (i586-mandriva-linux-gnu)

Note "%s" is after the --.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)

.