> > Yep, it's a bug.  Try the attached patch; it works for me.
> 
> this introduces a bug of it's own though :/.  you can no longer use ctrl+c to 
> escape from unbalanced quotes.
> 
> - type: echo '
> - hit enter
> - hit ctrl+c over and over
> - bash still waits for the ' to be balanced

Still not sure what extra stuff Linux runs to make this only fail there, but
here's a patch that should fix it.

Chet

*** ../bash-4.0/parse.y 2009-01-08 08:29:12.000000000 -0500
--- parse.y     2009-02-25 15:58:25.000000000 -0500
***************
*** 2669,2672 ****
--- 2671,2675 ----
    word_desc_to_read = (WORD_DESC *)NULL;
  
+   current_token = '\n';               /* XXX */
    last_read_token = '\n';
    token_to_read = '\n';

``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    c...@case.edu    http://tiswww.tis.case.edu/~chet/

Reply via email to