Date: Sun, 3 Mar 2002 11:10:01 -0800 (PST) From: Peter Pentchev <roam@ringlet.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/35505: [PATCH] Feature enhancement for sed(1) Message-ID: <200203031910.g23JA1u35963@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/35505; it has been noted by GNATS. From: Peter Pentchev <roam@ringlet.net> To: "Matthew D.Fuller" <fullermd@over-yonder.net> Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/35505: [PATCH] Feature enhancement for sed(1) Date: Sun, 3 Mar 2002 21:05:05 +0200 On Sun, Mar 03, 2002 at 12:27:40AM -0600, Matthew D.Fuller wrote: >=20 > >Number: 35505 > >Category: bin > >Synopsis: [PATCH] Feature enhancement for sed(1) > >Originator: Matthew D. Fuller [snip] > >Fix: [patch snipped] I think that something like the attached would befit style(9) more. Other than a few style nits, your patch looks great, and the functionality is something that I really do like :) Now let us see how this goes down with the src committers.. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence contradicts itself - or rather - well, no, actually it doesn'= t! Index: src/usr.bin/sed/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/usr.bin/sed/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile --- src/usr.bin/sed/Makefile 8 Feb 2002 23:07:35 -0000 1.4 +++ src/usr.bin/sed/Makefile 3 Mar 2002 18:59:52 -0000 @@ -4,5 +4,6 @@ PROG=3D sed SRCS=3D compile.c main.c misc.c process.c =20 +LINKS+=3D ${BINDIR}/sed ${BINDIR}/esed =20 .include <bsd.prog.mk> Index: src/usr.bin/sed/main.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/usr.bin/sed/main.c,v retrieving revision 1.14 diff -u -r1.14 main.c --- src/usr.bin/sed/main.c 12 Dec 2001 23:20:16 -0000 1.14 +++ src/usr.bin/sed/main.c 3 Mar 2002 19:01:05 -0000 @@ -114,9 +114,17 @@ char *argv[]; { int c, fflag; - char *temp_arg; + char *progname, *temp_arg; =20 (void) setlocale(LC_ALL, ""); + + progname =3D strrchr(*argv, '/'); + if (progname !=3D NULL) + progname++; + else + progname =3D *argv; + if (*progname=3D=3D'e') + rflags =3D REG_EXTENDED; =20 fflag =3D 0; while ((c =3D getopt(argc, argv, "Eae:f:n")) !=3D -1) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203031910.g23JA1u35963>