Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#68 crash with a simple command

open
nobody
Core shell (16)
5
2013-01-25
2011-10-19
Anonymous
No

It's been several times I encounter this crash.

First I type 'll' but instead of validating with <Enter>, I type '\' by mistake (cause the touch is just above). Then I type <Enter>. Zsh thinks it's a multiline command, so it displays the '>' prompt. Here, I notice my mistake so I interrupt the command with <C-c>. Finally I properly type 'll' followed by <Enter> and it crashes...

Here is a log:

prompt % ll\ > (<- here you must enter C-c)
prompt % ll

Warning: Program '/bin/zsh' crashed.

Info: my term emulator is Konsole, on ArchLinux.

Discussion

  • pir
    pir
    2011-10-24

    Duplicate of 3362789

    Which version of zsh do you have? (echo $ZSH_VERSION)
    Which options? (setopt)

     
  • % echo $ZSH_VERSION
    4.3.12

    % setopt
    autocd
    noautomenu
    nobeep
    completeinword
    nohistbeep
    histexpiredupsfirst
    histfindnodups
    histignoredups
    incappendhistory
    interactive
    interactivecomments
    nolistambiguous
    nolistbeep
    monitor
    promptsubst
    shinstdin
    zle

     
  • pir
    pir
    2011-11-10

    Oh i found it!

    Nothing to do with the options, this bug only appears with an alias.

    Launch zsh -f so zsh doesn't read your .zshrc, it starts clean like a new-born baby.
    The bug is not present.
    Type alias ll=ls
    Then, trying ll\ will crash zsh
    Trying with an other command will not crash.
    Setting an other alias and trying with it will crash zsh.

     
  • pir
    pir
    2011-11-21

    Here is a workaround:

    setopt SUN_KEYBOARD_HACK
    export KEYBOARD_HACK='\'

    so if the last character is a \, it will be dismissed.
    Could be boring if you want to continue a newline, you have to enter two \.