cvs commit: src/bin/sh expand.c parser.c parser.h

Peter Avalos pavalos at
Sun Jan 7 09:00:17 PST 2007

pavalos     2007/01/07 08:58:30 PST

DragonFly src repository

  Modified files:
    bin/sh               expand.c parser.c parser.h 
  Fix expanding of quoted positional parameters in case patterns.
  When parsing an invalid parameter expansion (eg. ${} or ${foo at 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.
  Remove some white space at EOL.
  The sub-expression "(nulonly || 1)" always evaluates to true and
  according to CVS logs seems to be just a left-over from some
  debugging and introduced by accident.
  Remove collate_range_cmp() stabilization, it conflicts with ranges
  Replace various spellings with FALLTHROUGH which is lint()able
  Obtained-from:  FreeBSD
  Revision  Changes    Path
  1.9       +28 -30    src/bin/sh/expand.c
  1.9       +19 -9     src/bin/sh/parser.c
  1.4       +2 -1      src/bin/sh/parser.h

More information about the Commits mailing list