Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh 4.3.11 regexp-related crash



On Fri, 14 Jan 2011 14:47:35 +0000
Nix <nix@xxxxxxxxxxxxx> wrote:

> This is a regression in 4.3.11, not seen in 4.3.10.
> 
> The following script:
> 
> ,----
> | #!/bin/zsh
> | 
> | cat /etc/passwd | while read A; do
> | 
> |     if [[ $A =~ ":audio:" ]]; then
> |         FBAR="foo"
> |     fi
> | done
> `----
> 
> dumps core:

Thanks, that's already fixed in the patch zsh-workers/28588.  The
problem was that the "=~" expression caused the code that turns the
internally representation back into text associated with the job to lose
its position.

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom



Messages sorted by: Reverse Date, Date, Thread, Author