Re: Regular Expression matching operation =~

2019-09-22 Thread Grisha Levit
On Sun, Sep 22, 2019 at 9:02 PM Allodoxaphobia wrote: > > In moving a bash ver. 4.3.48 (Ubuntu) program to a bash ver. 5.0.11 > (FreeBSD) environment I encountered either a bug, a quirk, or > an undocumented feature. > > I was using a null regexp as a "match for anything" case This behavior depen

Regular Expression matching operation =~

2019-09-22 Thread Allodoxaphobia
In moving a bash ver. 4.3.48 (Ubuntu) program to a bash ver. 5.0.11 (FreeBSD) environment I encountered either a bug, a quirk, or an undocumented feature. I was using a null regexp as a "match for anything" case when an optional command line parameter (a test pattern) was omitted. I boiled down

Re: Wrong command option in the manual examples

2019-09-22 Thread hk
GNU-implemented `find' does have a `-depth' option and a `-maxdepth' option. Directories[findutils] On Mon, Sep 23, 2019 at 2:15 AM Chet Ramey wrote: > On 9/20/19 10:24 PM, hk wrote: > > > Bash Vers

Re: Some questions about the use of readline()

2019-09-22 Thread Chet Ramey
On 9/21/19 11:23 AM, Aust zhu wrote: > Hello! > I am having some problems with readline(). When calling the readline() > function it is blocked. I want to set a timeout for the readline function > to return. You don't post any code, but I assume you're using a signal handler for SIGALRM. >

Re: Output of jobs wrong

2019-09-22 Thread Chet Ramey
On 9/21/19 2:48 PM, Martin Schulte wrote: > Hello, > > I'm not feeling well writing this mail because so far I've not been able > to reproduce the behaviour I describe in the following... Sorry, I can't reproduce it. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: Wrong command option in the manual examples

2019-09-22 Thread Chet Ramey
On 9/20/19 10:24 PM, hk wrote: > Bash Version: 5.0 > Patch Level: 0 > Release Status: release > > Description: > On the section 3.2.6(GNU Parallel, page 16 in the pdf) of Bash > Reference Manual. The manual uses `find' command to illustrate > possible use cases of `parallel' as examples.

Re: Incorrect example for `[[` command.

2019-09-22 Thread Chet Ramey
On 9/21/19 5:34 AM, Ilkka Virta wrote: > On 21.9. 03:12, hk wrote: >> Thanks for the reply. I was wrong in my report. It does match values like >> aab and  aab  in its original form. > > In some systems, yes. (It does that on my Debian, but doesn't work at all > on my Mac.) > >> It is syntati