DragonFly commits List (threaded) for 2007-01
DragonFly BSD
DragonFly commits List (threaded) for 2007-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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

From: Peter Avalos <pavalos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 7 Jan 2007 08:58:30 -0800 (PST)

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@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


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]