Re: Add sleep builtin

2018-08-27 Thread L A Walsh
On 8/27/2018 11:54 AM, Robert Elz wrote: From:L A Walsh | POSIX moved away from their original mission statement of being | "descriptive" to one that is "prescriptive" a long time ago I don't think that's true - certainly not as much as other (related) standards (like those f

Re: bash 5.0 nested array subscript arithmetic expansion error

2018-08-27 Thread Chet Ramey
On 8/27/18 12:25 PM, Grisha Levit wrote: > This used to work: > > bash-4.4$ a=0 > bash-4.4$ echo $(( a[a[0]] )) > 0 > bash-4.4$ echo ${a[a[a[0]]]} > 0 > > But is broken in bash-5.0: > > bash-5.0$ a=0 > bash-5.0$ echo ${a[a[a[0]]]} > bash: a[a[0]]: syntax error: invalid arithmetic operator (error

Re: Add sleep builtin

2018-08-27 Thread Robert Elz
Date:Mon, 27 Aug 2018 10:57:56 -0700 From:L A Walsh Message-ID: <5b843ba4.4030...@tlinx.org> | I certainly would not take the ever-changing POSIX spec as | a guide to what actually exists or is implemented in the field. | POSIX moved away from their original mis

Re: Add sleep builtin

2018-08-27 Thread L A Walsh
On 8/25/2018 3:16 PM, Bob Proulx wrote: Greg Wooledge wrote: If true, that would actually violate POSIX. You might be remembering it wrong. Naw...just the marginalia that Bob mentions... I also remember that at one time the Unix sleep was implemented by polling a second granularity cloc

bash 5.0 nested array subscript arithmetic expansion error

2018-08-27 Thread Grisha Levit
This used to work: bash-4.4$ a=0 bash-4.4$ echo $(( a[a[0]] )) 0 bash-4.4$ echo ${a[a[a[0]]]} 0 But is broken in bash-5.0: bash-5.0$ a=0 bash-5.0$ echo ${a[a[a[0]]]} bash: a[a[0]]: syntax error: invalid arithmetic operator (error token is "]") bash-5.0$ echo $(( a[a[0]] )) bash: a[a[0]] : syntax

Re: Re: 回复: 回复: 回复: 回复: display bug for both gnome-teminal & terminator & xterm

2018-08-27 Thread Chet Ramey
> On 8/27/18 9:19 AM, weidong wrote: > > I use ubuntu18.04, tried bash 5.0 alpha, maybe the vte's version is not the > > same? > > Do I need update vte library? > > No idea. I'll look at it some more. (And it seems to work fine using iTerm > as well, for what that's worth.) I tried the current de

Re: 回复: 回复: 回复: 回复: display bug for both gnome-teminal & terminator & xterm

2018-08-27 Thread Chet Ramey
On 8/27/18 9:19 AM, weidong wrote: > I use ubuntu18.04, tried bash 5.0 alpha, maybe the vte's version is not the > same? > Do I need update vte library? No idea. I'll look at it some more. (And it seems to work fine using iTerm as well, for what that's worth.) -- ``The lyf so short, the craft so

Re: 回复: 回复: 回复: display bug for both gnome-teminal & terminator & xterm

2018-08-27 Thread Chet Ramey
On 8/26/18 9:37 PM, weidong wrote: > I tried bash 5.0 alhpa, This bug is not fixed, but even worse. Interesting. I can't reproduce it at all using bash-5.0, Mac OS X, and Terminal. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippoc