[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What exactly does "read -e" do? bind weirdnesses
From: |
Chet Ramey |
Subject: |
Re: What exactly does "read -e" do? bind weirdnesses |
Date: |
Thu, 11 Sep 2008 09:29:47 -0400 |
User-agent: |
Thunderbird 2.0.0.16 (Macintosh/20080707) |
rocky wrote:
> The most recent bash docs say this about builtin function read with
> option -e:
>
> Readline (@pxref{Command Line Editing}) is used to obtain the line.
>
> Consider this little program:
>
> PS4='-$LINENO: $? $ '
> set -x
> builtin bind '"\C-x\C-r": "bind completion"'
> builtin bind -P
> while read -e -p 'huh? ' line ; do
> echo $line
> done
Things will work as you expect with bash-3.2 if you enable line editing
before attempting to run `bind'. `set -o emacs' will do the job.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- What exactly does "read -e" do? bind weirdnesses, rocky, 2008/09/10
- Re: What exactly does "read -e" do? bind weirdnesses,
Chet Ramey <=
- Re: What exactly does "read -e" do? bind weirdnesses, Rocky Bernstein, 2008/09/11
- Re: What exactly does "read -e" do? bind weirdnesses, Chet Ramey, 2008/09/11
- Re: What exactly does "read -e" do? bind weirdnesses, Rocky Bernstein, 2008/09/11
- Re: What exactly does "read -e" do? bind weirdnesses, Chet Ramey, 2008/09/11
- Re: What exactly does "read -e" do? bind weirdnesses, Rocky Bernstein, 2008/09/11
- Re: What exactly does "read -e" do? bind weirdnesses, Chet Ramey, 2008/09/13
- Re: What exactly does "read -e" do? bind weirdnesses, Rocky Bernstein, 2008/09/17
- Re: What exactly does "read -e" do? bind weirdnesses, Chet Ramey, 2008/09/23
- Re: What exactly does "read -e" do? bind weirdnesses, Rocky Bernstein, 2008/09/23
- Re: What exactly does "read -e" do? bind weirdnesses, Chet Ramey, 2008/09/25