Hi, Sourcing following function in a clean shell (zsh -f) followed by which or tab completion is causing shell to segfault ================= view () { if [[ -z $1 ]] then ranger ~/Documents elif [[ $1 =~ ^http:* ]] then url=${1#*=} dest="$HOME/Documents/${1##*/}" wget -c --content-disposition -O - -q $url > $dest detach mupdf -r 143 $dest else detach mupdf -r 143 "$@" fi } ====================================== After sourcing this function, something like view or which view is crashing the shell. Surprisingly, view xyz.pdf is not crashing the shell. The pattern causing the crash is '=~'. To reproduce, it should be run non-interactively and with arguments (atleast this is how I was able to do) Also, this can be reproduced on latest zsh git. Also I am attaching the full backtrace from the core file. -----------------