Re: prompting for a password
- From: "David W. Hodgins" <dwhodgins@xxxxxxxxxxxxxxxxx>
- Date: Wed, 25 Feb 2009 20:05:56 -0500
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.)
.
- Follow-Ups:
- Re: prompting for a password
- From: Lao Ming
- Re: prompting for a password
- References:
- prompting for a password
- From: Lao Ming
- Re: prompting for a password
- From: mop2
- Re: prompting for a password
- From: Lao Ming
- prompting for a password
- Prev by Date: Re: prompting for a password
- Next by Date: Re: prompting for a password
- Previous by thread: Re: prompting for a password
- Next by thread: Re: prompting for a password
- Index(es):