Re: CHLD traps run at the same time
Chet Ramey wrote: It's not a bug. The only guarantee is that the CHLD trap gets run once for each child bash reaps. Bash gets SIGCHLD, reaps as many terminated child processes as it can, then runs the CHLD trap once for each terminated child when it's no longer in a signal handler context. I don't have any plans to change this. --- Doesn't bash run off an event loop [yet]?... Things like that can be check in the event loop periodically every 100ms or 50ms... (BASH_SIGHANDLER_POLL_INTERVAL)... I found in programs that deal with input and need to deal with other stuff, that I've almost always had to go to some event loop and the resulting code is usually more efficient (xosview seemed to drop about 60-70% cpu usage by going to an event loop where it used to use sleeps and polls)... But depends on the program, as far as benefits, as well as how much work... I only added about 50k lines of C++ code... really a drop in the bucket.. ;-)
Re: Extending brace expansion
> I read somewhere that GNU was moving to C++. > > But I can rewrite this in C. > > --- Brian You forgot to CC the list. Also, consider the following: - bash has one maintainer only - the code you provided is just an example, it's not a patch against bash, so, further work is needed to understand how to apply your suggestion to the already working code. - you give no examples of what your program does, or how it relates to bash This means that probably your suggestion won't be accepted: it's too much work, and the benefit is not clear. Consider rewriting it as a patch against bash (use the -devel branch as a reference), and explain clearly what it does and why it is useful. That increases the likelyhood of having your suggestions get included into bash.
Re: bug with case conversion of UTF-8 characters
On 1/22/15 9:43 AM, Stephane Chazelas wrote: > Bash Version: 4.3 > Patch Level: 30 > Release Status: release > > (Debian unstable amd64) > > $ LC_ALL=tr_TR.UTF-8 bash -c 'typeset -l a; a=İ; echo $a' | hd > 69 b0 0a |i..| > 0003 > $ a=İ LC_ALL=tr_TR.UTF-8 bash -c 'echo ${a,,}' | hd > 69 b0 0a |i..| > 0003 > > In Turkish locales on a GNU system at least, uppercase i is İ, > not I. And lowercase I is ı, not i. Thanks for the report, especially the example that showed bash's assumption that the lowercase and uppercase versions of a letter have the same width. I would not count on the above fact about Turkish locales being true across all systems; it's not true on Mac OS X, for instance. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
which paradigms does bash support
As a programming language which paradigms does bash support. Declarative, procedural, imperative?