[Bug 208098] shells/ksh93: a() { b } makes ksh93 dump core.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Mar 17 19:44:08 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208098

            Bug ID: 208098
           Summary: shells/ksh93: a() { b } makes ksh93 dump core.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet at FreeBSD.org
          Reporter: fuz at fuz.su
             Flags: maintainer-feedback?(sunpoet at FreeBSD.org)
          Assignee: sunpoet at FreeBSD.org

Recently I wrote a shell script, made a syntax error and watched ksh93 dump
core. To reproduce, create a file with the following content

    a() { b }

then try to run this as a ksh93 shell script. The result looks like this:

    $ ksh93 ksh_crash.sh
    ksh_crash.sh: syntax error at line 2: `{' unmatched
    Memory fault(coredump)

This is the version reported by ksh93:

    $ echo $KSH_VERSION
    Version AJM 93u+ 2012-08-01

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list