bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug report


From: Greg Wooledge
Subject: Re: Bug report
Date: Fri, 12 Nov 2010 08:36:16 -0500
User-agent: Mutt/1.4.2.3i

On Thu, Nov 11, 2010 at 03:45:08PM -0500, sworddragon2@aol.com wrote:
> Description:
>         It is possible to make input with the keyboard before bash is fully 
> initialized. This problem is critical on password inputs like the linux login.

Bash has nothing to do with accepting passwords during logins.  That
is done by login(1) (for console logins) or by sshd or the like, long
before bash is ever started.

> Repeat-By:
> $input is now shown before and after sworddragon@ubuntu:~$. Example: 
> testsworddragon@ubuntu:~$ test

I do not understand what this is supposed to be showing.

If you are asking about a case like this:

  echo -n 'Enter password: '
  stty -echo
  read passwd
  stty echo

Then this is badly written code.  Use "read -s" to suppress terminal
echo, or run the stty -echo BEFORE displaying the prompt.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]