Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2002 11:32:18 -0700 (PDT)
From:      "J. Mallett" <jmallett@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/sed main.c sed.1
Message-ID:  <200205071832.g47IWJO26790@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jmallett    2002/05/07 11:32:18 PDT

  Modified files:
    usr.bin/sed          main.c sed.1 
  Log:
  Add a -i option to sed(1) to do inplace editing, to give us an alternative to
  Perl for such things.  The key difference to Perl is that a backup extension
  *MUST* be specified, because on one hand it isn't recommended to have options
  which optionally take a parameter, and on the other hand, it'd be slightly
  unpleasent to implement proper handling for that.
  
  The difference between this and the version posted to developers@ is that it
  does handle multiple files in argv after the getopt(3) handling "correctly",
  in that the inplace editing-specific code has been moved out to a function,
  and that function is used beyond the first file in our linked list.
  
  This option has been documented as FreeBSD-specific in the manpage.
  
  Reviewed by:    developers@ (got feedback from: des, fanf, sobomax, roberto,
                  obrien)
  MFC after:      1 week
  
  Revision  Changes    Path
  1.16      +66 -2     src/usr.bin/sed/main.c
  1.21      +11 -1     src/usr.bin/sed/sed.1

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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