zsh-users
 help / color / mirror / code / Atom feed
* segfault when name a local variable "path"
@ 2015-11-20 10:38 Corentin Henry
  2015-11-20 11:11 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Corentin Henry @ 2015-11-20 10:38 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 637 bytes --]

Hi,

I have the following script:

# segfault.sh
function foo() {
    local path=
}


I source it an execute foo:

% source segfault.sh
% foo

Then zsh segaults. Is this a known bug? If not, can anyone reproduce?
My setup:

arch-lenovo% uname -a
Linux arch-lenovo 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015
x86_64 GNU/Linux
arch-lenovo% zsh --version
zsh 5.1.1 (x86_64-unknown-linux-gnu)

I installed zsh using archlinux package manager. I use prezto (
https://github.com/sorin-ionescu/prezto) but I'm able to reproduce with a
plain zsh config.

Please let me know how I can provide more info, if needed.

Cheers,
Corentin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-20 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-20 10:38 segfault when name a local variable "path" Corentin Henry
2015-11-20 11:11 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).