Menu

#18 Infinite loop on bad pattern in precmd

open-accepted
9
2001-08-19
2001-06-30
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

     
  • 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
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.