Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Crash with read-only CDPATH



Hey. I don't really use mailing lists, but I have a bug to report. This minimal example immediately crashes zsh:

readonly CDPATH; CDPATH= cd

zsh:1: read-only variable: CDPATH
free(): invalid pointer
Aborted (core dumped)

This version of zsh was installed from the Ubuntu 24.04 (x86_64) repos; the package version is 5.9-6ubuntu2. I can confirm the issue is also present (it hangs) on MSYS2, where the package version is 5.9-2.


Messages sorted by: Reverse Date, Date, Thread, Author