Re: [PATCH] Add active mark, face support; activate mark on paste

2018-03-19 Thread Chet Ramey
On 3/19/18 1:25 PM, Daniel Colascione wrote: > Ping I haven't looked at it closely yet; trying to get bugs and tests done before starting the 5.0-alpha release cycle. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Ch

Re: [PATCH] Add active mark, face support; activate mark on paste

2018-03-19 Thread Daniel Colascione
Ping On Fri, Mar 9, 2018 at 11:50 PM, Daniel Colascione wrote: > This patch teaches readline about two concepts from Emacs: 1) faces, > and 2) the mark being "active". Both exist in rudimentary form: we > support exactly two faces, normal and "standout", and use standout to > highlight the conte

bash/examples index files missing

2018-03-19 Thread Jorge Maldonado Ventura
Am I missing something or some files listed on the INDEX files don't exist anymore? They should be removed from those indexes in that case.

Re: Sporadic byte loss in read builtin

2018-03-19 Thread Chet Ramey
On 3/19/18 3:12 AM, Rob Foehl wrote: > The attached script will provoke an occasional loss of a single byte when > the read builtin is used with a timeout. > [...] > > This happens at random intervals on all machines I've tested with a 4.4 > release, including 4.4.19 on current Fedora 27. 

Re: [PATCH: bash-5.0.0(2)-alpha] fix a bug that "bind -r" sometimes causes a segmentation fault

2018-03-19 Thread Chet Ramey
On 3/19/18 4:52 AM, Koichi Murase wrote: > Description: > > At the line lib/readline/bind.c:376, an uninitialized variable `ic' > is used to assign a value to the variable `prevkey'. This assignment > to `prevkey' should be later than the assignment to `ic'. This causes > segmentation faults in

Re: compgen -W doesn't split wordlist containing single quotes

2018-03-19 Thread Clark Wang
On Mon, Mar 19, 2018 at 9:52 PM, Chet Ramey wrote: > > `-o filenames' would append `/' to a word if the word is coincidentally a > > real existing dir name. How can I ask it not to append the `/'? > > You can't. That's the implication from my second paragraph. > OK. I'll stick with my 2-pass sh-

Re: compgen -W doesn't split wordlist containing single quotes

2018-03-19 Thread Chet Ramey
On 3/17/18 10:49 PM, Clark Wang wrote: > You haven't told complete that you want the words to be quoted. If you > install the completion using the `-o filenames' option, you will get > filename-like quoting. > > > `-o filenames' would append `/' to a word if the word is coincidentall

Re: misleading error message from variable modifier

2018-03-19 Thread Chet Ramey
On 3/18/18 1:01 AM, don fong wrote: > will the coverage target be in an upcoming release? Sure. It's in the devel branch now. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp:

Re: question on retrieving map(-A) value w/indirect name

2018-03-19 Thread Greg Wooledge
On Fri, Mar 16, 2018 at 05:50:04PM -0700, L A Walsh wrote: > If I have assoc-array: > > declare -A foo=([one]=11 [two]=22) > > and am passing name in another var, like "fee" > > fee=foo > > I tried echoing the val: > > echo ${!fee[one]} > > but got nothing -- tried a few other syntaxes. 1

[PATCH: bash-5.0.0(2)-alpha] fix a bug that "bind -r" sometimes causes a segmentation fault

2018-03-19 Thread Koichi Murase
Bash Version: I used the following latest commit from the devel branch. commit bf5b8103d466fdbc3bfcdaa5e21a0d0c0dce7cba Author: Chet Ramey Date: Mon Mar 12 08:10:29 2018 -0400 commit bash-20180309 snapshot Description: At the line lib/readline/bind.c:376, an uninitialized va

Sporadic byte loss in read builtin

2018-03-19 Thread Rob Foehl
The attached script will provoke an occasional loss of a single byte when the read builtin is used with a timeout. Output will eventually look something like this after a failure: x: ab (2) x: cd (2) x: ef (2) x: g (1) x: hi (2) x: j (1) x: l (1) x: mn (2) x: op (2) x: q (1) x: rs (2) x: tu (2