[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read -e bug
From: |
Chet Ramey |
Subject: |
Re: read -e bug |
Date: |
Thu, 28 May 2009 08:44:12 -0400 |
>
> This is nothing new; it happens in all versions of bash:
>
> printf "Enter something: "
> read -e whatever
>
> Press a key, then cursor left (or ^A); the cursor moves to the
> beginning of the line, over "E" instead of over the character just
> entered.
This isn't a bug; that's where readline thinks the cursor is. If you
want to use a prompt, use `read -p'.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/
- read -e bug, Chris F.A. Johnson, 2009/05/27
- Re: read -e bug,
Chet Ramey <=