X-Original-To: alpine-aports@lists.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id B1139DC0160 for ; Thu, 12 Mar 2015 07:35:30 +0000 (UTC) Received: by pdbft15 with SMTP id ft15so17980465pdb.6 for ; Thu, 12 Mar 2015 00:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=HTrbKDU4eECGkcv2tnfIvHlloFL3QYL0sBs2YEyzpOw=; b=ZShSDV0cXAHTHycWK98mrUn0Df45jRRyXqG6WDsHzJYN5EGSGZzAXU4K07DNdl8FNH 15U/tH7jtHrHYjUa/bwNdT0vq0/N3lEYewVUQAK7pG1BSB1AlDQx7oINoR4w8zM/EQpz gEvBSxu05kgk0lC1i3DMRFrrsExsoo2h0bxcJHmi+t8cMjsbRHgJEMO1uI18A+n8UjlP 49YahlcrdtUEJYor4jetll+IWvdQUh4C5yRdi7mpOhJRVH1DRoDU/y+Hga69R1QqUuE1 pDYlT9igtlJ/HwcXPgrMMcQA/F5DFHyvHpIaKHflacyzKJDLtEQucAdoMtK8B6clsiHo Knvw== X-Received: by 10.66.216.136 with SMTP id oq8mr35003922pac.20.1426145729584; Thu, 12 Mar 2015 00:35:29 -0700 (PDT) Received: from microknoppix.localnet ([117.198.36.41]) by mx.google.com with ESMTPSA id x4sm9401826pas.40.2015.03.12.00.35.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Mar 2015 00:35:28 -0700 (PDT) From: "V.Krishn" Reply-To: vkrishn4@gmail.com To: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/sysklogd: remove GNUism and use POSIX Extended Regular Expressions (EREs) Date: Thu, 12 Mar 2015 13:05:17 +0530 User-Agent: KMail/1.13.7 (Linux/3.9.6-64; KDE/4.8.4; x86_64; ; ) References: <1426109305-19657-1-git-send-email-nangel@alpinelinux.org> <20150312081159.5e532b9b@ncopa-desktop.alpinelinux.org> In-Reply-To: <20150312081159.5e532b9b@ncopa-desktop.alpinelinux.org> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201503121305.17253.vkrishn4@gmail.com> > On Wed, 11 Mar 2015 21:28:25 +0000 > > Nathan Angelacos wrote: > > --- > > > > main/sysklogd/sysklogd.daily | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/main/sysklogd/sysklogd.daily b/main/sysklogd/sysklogd.daily > > index 723413d..3d98e8e 100755 > > --- a/main/sysklogd/sysklogd.daily > > +++ b/main/sysklogd/sysklogd.daily > > @@ -1,7 +1,7 @@ > > > > #!/bin/sh > > # This is a shell script replacement for the sysklogd's logrotate cron > > script # and syslogd-listfiles perl script. > > > > -# Copyright (C) 2008 N. Angelacos for the Alpine Linux project - GPL2 > > +# Copyright (C) 2008-2015 N. Angelacos for the Alpine Linux project - > > GPL2 > > > > CONF="/etc/syslog.conf" > > > > @@ -25,9 +25,9 @@ syslogd_listfiles() { > > > > # deletes lines that are not filenames with leading "/" > > # print it > > while read a ; do echo "$a"; done < $CONF |\ > > > > - sed -n -e "s/\#.*//" \ > > + sed -nE -e "s/\#.*//" \ > > > > -e "/^[[:space:]]*$/D" \ > > > > - -e "s/[[:space:]]\+/ /g" \ > > + -e "s/[[:space:]]+/ /g" \ > > > > -e "s: -/: /:g" \ > > -e "s/ *; */;/" \ > > -e "/^.*\(auth\)[^ ]* /${skip}D" \ > > I think you need to change the last line to: > > -e "/^.*(auth)[^ ]* /${skip}D" \ > > Test case: > > $ echo "aaabbb" | sed -E -e 's/\(a+\)\(b+\)/\2\1/' > aaabbb > $ echo "aaabbb" | sed -E -e 's/(a+)(b+)/\2\1/' > bbbaaa Could someone also run this test after "apk add sed" and see if they are as expected ? -- Regards. V.Krishn --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---