cvs commit: src/usr.bin/env envopts.c

Garance A Drosehn gad at FreeBSD.org
Wed Jul 13 15:56:32 GMT 2005


gad         2005-07-13 15:56:30 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/env          envopts.c 
  Log:
  Fix two minor parsing bugs in -S processing:
   1) An unquoted space is always a separator, even when not "in_arg".
   2) When a new destination buffer must be allocated during variable
      substitution, only copy data from the active buffer to the new
      one when we *are* "in_arg".
  These were noticed when testing variable-substitution of variables
  which have null values, and are not inside quoted strings...
  
  MFC plans:      after a few days, and re@ approval...
  
  Revision  Changes    Path
  1.3       +23 -14    src/usr.bin/env/envopts.c


More information about the cvs-src mailing list