Re: Bash-4.2-rc2 available for FTP

2011-02-02 Thread Chet Ramey
On 2/2/11 6:27 PM, Mike Frysinger wrote:
> On Wednesday, February 02, 2011 08:56:24 Chet Ramey wrote:
>> The second release candidate of bash-4.2 is now available with the URL
>>
>> ftp://ftp.cwru.edu/pub/bash/bash-4.2-rc2.tar.gz
> 
> - braces.c:mkseq() is using an intmax_t type for the length in the asprintf 
> call when it needs to be an int.  a quick check of a 32bit system shows that 
> sizeof(intmax_t) is 8 bytes which means the output most likely will get 
> screwed up (since it'll be interpreted in the C library as 2 arguments).

Thanks.  There was actually an int variable there, already assigned, but
I never changed the argument to asprintf.

> - lib/glob/smatch.c needs externs.h for mbsmbchar.  seems like externs.h 
> could 
> do with including bashtypes.h/command.h/general.h too since it needs basic 
> types from all of those.

Or an extern declaration for mbsmbchar, to avoid having to include other
files.

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/



Re: Bash-4.2-rc2 available for FTP

2011-02-02 Thread Mike Frysinger
On Wednesday, February 02, 2011 08:56:24 Chet Ramey wrote:
> The second release candidate of bash-4.2 is now available with the URL
> 
> ftp://ftp.cwru.edu/pub/bash/bash-4.2-rc2.tar.gz

- braces.c:mkseq() is using an intmax_t type for the length in the asprintf 
call when it needs to be an int.  a quick check of a 32bit system shows that 
sizeof(intmax_t) is 8 bytes which means the output most likely will get 
screwed up (since it'll be interpreted in the C library as 2 arguments).

- lib/glob/smatch.c needs externs.h for mbsmbchar.  seems like externs.h could 
do with including bashtypes.h/command.h/general.h too since it needs basic 
types from all of those.

- lib/glob/smatch.c seems its STR defines could be unified with stuff in 
general.h

- seems like lib/sh/snprintf.c should be including some header for isnan and 
isinf (maybe math.h ?)

otherwise, some quick smoke tests show it seems to be working OK so far ...
-mike


signature.asc
Description: This is a digitally signed message part.


Re: Bash-4.2-rc2 available for FTP

2011-02-02 Thread Chet Ramey
On 2/2/11 11:51 AM, Bernd Eggink wrote:
> Am 02.02.2011 14:56, schrieb Chet Ramey:
>> The second release candidate of bash-4.2 is now available with the URL
>>
>> ftp://ftp.cwru.edu/pub/bash/bash-4.2-rc2.tar.gz
> 
> Thanks. Unfortunately, this version is incredibly slow. For example, it
> needs 20 seconds (!) to source the bash_completion file, as opposed to 0.2
> seconds with 4.1-9. Counting from 1 to 1 is about 20 times slower.
> Maybe due to heavy debugging?

Absolutely due to heavy debugging.  The malloc debugging features have
always been a drag on performance.

-- 
``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/



Re: Bash-4.2-rc2 available for FTP

2011-02-02 Thread Bernd Eggink

Am 02.02.2011 14:56, schrieb Chet Ramey:

The second release candidate of bash-4.2 is now available with the URL

ftp://ftp.cwru.edu/pub/bash/bash-4.2-rc2.tar.gz


Thanks. Unfortunately, this version is incredibly slow. For example, it 
needs 20 seconds (!) to source the bash_completion file, as opposed to 
0.2 seconds with 4.1-9. Counting from 1 to 1 is about 20 times 
slower. Maybe due to heavy debugging?


Regards,
Bernd

--
Bernd Eggink
http://sudrala.de



Bash-4.2-rc2 available for FTP

2011-02-02 Thread Chet Ramey
The second release candidate of bash-4.2 is now available with the URL

ftp://ftp.cwru.edu/pub/bash/bash-4.2-rc2.tar.gz

This tar file does not include the formatted documentation (you
should be able to generate it yourself).

This release fixes several outstanding bugs in bash-4.1 and introduces
several new features.

The most notable new features are \u and \U unicode character escapes for
the echo and printf builtins and $'...' quoting, a new mechanism to declare
variables with attributes in the global scope from a shell function, and
new word expansion features.  There are also a number of changes to
accommodate recent Posix shell interpretations, changing the bash
posix-mode behavior to align with the newly-intepreted standard. 

`bashbug' may be used to report bugs with this version.  It will send
mail to c...@po.cwru.edu if the shell's `release status' is not `release'.

Chet
+== CHANGES ==+
This document details the changes between this version, bash-4.2-rc2,
and the previous version, bash-4.2-rc1.

1.  Changes to Bash

a.  Changes to bash_directory_completion_hook so that it's assigned to the
readline rl_directory_rewrite_hook variable, which modifies the directory
name passed to opendir without modifying the directory name the user
typed.

b.  Fixed bug in select builtin that caused it to not terminate correctly if
the read timed out due to $TMOUT.

c.  Fixed a problem that resulted in non-repeatable sequences of random
numbers when RANDOM=0.

--
This document details the changes between this version, bash-4.2-rc1,
and the previous version, bash-4.2-beta.

1.  Changes to Bash

a.  Fixed a bug that caused some redirection errors to leak file descriptors.

b.  Fixed a bug that caused unary `+' and `-' arithmetic operators to have a
higher precedence than unary `!' and `~'.

c.  Fixed a bug that caused simple commands in a pipeline to affect the exit
status ($?) seen by subsequent pipeline commands.

d.  A number of cygwin-specific changes to avoid the use of text-mode files
and file access, and to make sure that \r is handled correctly.

e.  Fixed a bug that caused the read builtin to not return failure if an
attempt is made to assign to a readonly variable.

f.  Fixed a bug that caused some builtin usage messages to not be translated.

g.  Fixed a bug that caused the getopts builtin to not return failure if an
attempt is made to assign to a readonly variable.  Now it returns 2.

h.  Fixed the cd and pwd builtins to return failure if PWD is readonly and
cannot be assigned to.

i.  Added code to check the return value of access(2) on Solaris systems,
since it returns success for executable tests (e.g., `test -x') when
run by root, even if the file permissions don't allow execution.

2.  Changes to Readline

a.  Fixed a bug that caused directory names in words to be completed to not
be dequoted correctly.

3.  New Features in Bash

4.  New Features in Readline

--
This document details the changes between this version, bash-4.2-beta,
and the previous version, bash-4.2-alpha.

1.  Changes to Bash

a.  Fixed a bug that caused the \W prompt string escape to not add a closing
NULL.

b.  Fixed a bug that caused partially-quoted words that were not subject to
word splitting to retained quoted NULLs.

c.  Added considerable efficiency speedups when pattern matching in multibyte
locales by skipping multibyte character functions where possible.

d.  Added considerable speedups to variable expansion when in multibyte locales.

e.  Fixed a bug that caused the expansion of $* when there are no positional
parameters to cause the shell to dump core when used in a pattern
matching context.

f.  Fixed a bug that caused variable expansions preceding regular builtins to
not change the shell environment during their execution.

2.  Changes to Readline

a.  Fixed a bug that made an explicit argument of 0 to yank-last-arg behave
as if it were a negative argument.

--
This document details the changes between this version, bash-4.2-alpha,
and the previous version, bash-4.1-release.

1.  Changes to Bash

a.  Fixed a bug in the parser when processing alias expansions containing
quoted newlines.

b.  Fixed a memory leak in associative array expansion.

c.  Fixed a bug that caused quoted here-strings to be requoted when printed.

d.  Fixed a bug in arithmetic expansion that caused the index in an array
expansion to be evaluated twice under certain circumstances.

e.  Fixed several bugs with the expansion and display of variables that have
been given attributes but not values and are technically unset.

f.  Fixed a bug that caused core dumps when using filename completion that
expands to a