Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!pyramid!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.bugs.4bsd Subject: "sed" supports comments, but this is undocumented Message-ID: <5671@sun.uucp> Date: Wed, 30-Jul-86 17:19:00 EDT Article-I.D.: sun.5671 Posted: Wed Jul 30 17:19:00 1986 Date-Received: Thu, 31-Jul-86 21:44:23 EDT Distribution: net Organization: Sun Microsystems, Inc. Lines: 22 Index: man/man1/sed.1 4.3BSD Description: "sed" supports comments in scripts. Any line containing an option string of white space (blanks or tabs) followed by a "#" is a comment and will be ignored by "sed". Furthermore, if the *first* comment line is of the form #n the "sed" script will be executed as if the "-n" flag were specified. Repeat-By: Check out "fcomp" in "sed0.c". Fix: Document it. (S5's "sed" supports the "#n" feature, so it's probably been in there since V7; S5 even documents it.) -- Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com (or guy@sun.arpa)