Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Nov 2006 18:36:05 +0000 (UTC)
From:      Stefan Farfeleder <stefanf@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/bin/sh expand.c parser.c parser.h
Message-ID:  <200611051836.kA5Ia5ES040828@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
stefanf     2006-11-05 18:36:05 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               expand.c parser.c parser.h 
  Log:
  When parsing an invalid parameter expansion (eg. ${} or ${foo@bar}) do not
  issue a syntax error immediately but save the information that it is erroneous
  for later when the parameter expansion is actually done.  This means eg. "false
  && ${}" will not generate an error which seems to be required by POSIX.
  Include the invalid parameter expansion in the error message (sometimes
  abbreviated with ... because recovering it would require a lot of code).
  
  PR:             105078
  Submitted by:   emaste
  
  Revision  Changes    Path
  1.50      +5 -0      src/bin/sh/expand.c
  1.58      +19 -9     src/bin/sh/parser.c
  1.11      +1 -0      src/bin/sh/parser.h



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