From owner-svn-src-stable-7@FreeBSD.ORG Tue Feb 3 12:56:06 2009 Return-Path: Delivered-To: svn-src-stable-7@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F2751065675; Tue, 3 Feb 2009 12:56:06 +0000 (UTC) (envelope-from dds@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0C0698FC13; Tue, 3 Feb 2009 12:56:06 +0000 (UTC) (envelope-from dds@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n13Cu5pL030740; Tue, 3 Feb 2009 12:56:05 GMT (envelope-from dds@svn.freebsd.org) Received: (from dds@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n13Cu5q1030739; Tue, 3 Feb 2009 12:56:05 GMT (envelope-from dds@svn.freebsd.org) Message-Id: <200902031256.n13Cu5q1030739@svn.freebsd.org> From: Diomidis Spinellis Date: Tue, 3 Feb 2009 12:56:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188068 - stable/7/usr.bin/sed X-BeenThere: svn-src-stable-7@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 7-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2009 12:56:07 -0000 Author: dds Date: Tue Feb 3 12:56:05 2009 New Revision: 188068 URL: http://svn.freebsd.org/changeset/base/188068 Log: MFC 184854 from head to stable/7 Fix the code to conform to the "or more" part of the following POSIX specification and regression test regress:25. "A function can be preceded by one or more '!' characters, in which case the function shall be applied if the addresses do not select the pattern space." _M 7/usr.bin/sed M 7/usr.bin/sed/compile.c Modified: stable/7/usr.bin/sed/ (props changed) stable/7/usr.bin/sed/compile.c Modified: stable/7/usr.bin/sed/compile.c ============================================================================== --- stable/7/usr.bin/sed/compile.c Tue Feb 3 11:04:03 2009 (r188067) +++ stable/7/usr.bin/sed/compile.c Tue Feb 3 12:56:05 2009 (r188068) @@ -224,7 +224,7 @@ nonsel: /* Now parse the command */ case NONSEL: /* ! */ p++; EATSPACE(); - cmd->nonsel = ! cmd->nonsel; + cmd->nonsel = 1; goto nonsel; case GROUP: /* { */ p++;