#18 Infinite loop on bad pattern in precmd

open-accepted
Bart Schaefer
9
2001-08-19
2001-06-30
Bart Schaefer
No

Try this only in a debugger or if you have another
shell from which you can kill the first one:

zsh% precmd() { echo [[ }

Zsh goes into an infinite loop printing `precmd: bad
pattern: [['. This does not happen in 3.0.8, but does
happen as far back as 3.1.6-dev-20.

Discussion

  • Bart Schaefer
    Bart Schaefer
    2001-06-30

    Reset errflag after executing precmd

     
    Attachments
  • Bart Schaefer
    Bart Schaefer
    2001-08-19

    • status: open --> open-accepted
     
  • Bart Schaefer
    Bart Schaefer
    2001-08-19

    Logged In: YES
    user_id=22647

    Fixed in 4.0.2 (patch applies to 4.0.1).

     
  • Bart Schaefer
    Bart Schaefer
    2001-08-19

    • status: open-accepted --> closed-accepted
     
  • Bart Schaefer
    Bart Schaefer
    2001-08-19

    Logged In: YES
    user_id=22647

    Argh. Typos in previous comment; it should read:

    Fixed in 4.0.3 (patch applies to 4.0.2).

    Sorry.

     
  • Bart Schaefer
    Bart Schaefer
    2001-08-19

    • status: closed-accepted --> open-accepted