Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2009 22:41:25 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/bin/sh eval.c exec.c mknodes.c nodes.c.pat src/tools/regression/bin/sh/execution func2.0
Message-ID:  <200908282244.n7SMigLT089058@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2009-08-28 22:41:25 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               eval.c exec.c mknodes.c nodes.c.pat 
  Added files:
    tools/regression/bin/sh/execution func2.0 
  Log:
  SVN rev 196634 on 2009-08-28 22:41:25Z by jilles
  
  sh: Fix crash with empty functions (f() { }) introduced in r196483
  
  Empty pairs of braces are represented by a NULL node pointer, just like
  empty lines at the top level.
  
  Support for empty pairs of braces may be removed later. They make the code
  more complex, have inconsistent behaviour (may or may not change $?), are
  not specified by POSIX and are not allowed by some other shells like bash,
  dash and ksh93.
  
  Reported by:    kan
  
  Revision  Changes    Path
  1.66      +2 -2      src/bin/sh/eval.c
  1.36      +1 -1      src/bin/sh/exec.c
  1.20      +2 -4      src/bin/sh/mknodes.c
  1.17      +12 -1     src/bin/sh/nodes.c.pat
  1.1       +11 -0     src/tools/regression/bin/sh/execution/func2.0 (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908282244.n7SMigLT089058>