X-Original-To: alpine-aports@lists.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from sparky_64.resnet.local (unknown [74.117.191.11]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nangel@nothome.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id 4C3F1DC0122; Wed, 11 Mar 2015 21:28:48 +0000 (UTC) From: Nathan Angelacos To: alpine-aports@lists.alpinelinux.org Cc: Nathan Angelacos Subject: [alpine-aports] [PATCH] main/sysklogd: remove GNUism and use POSIX Extended Regular Expressions (EREs) Date: Wed, 11 Mar 2015 21:28:25 +0000 Message-Id: <1426109305-19657-1-git-send-email-nangel@alpinelinux.org> X-Mailer: git-send-email 2.3.1 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- 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" \ -- 2.3.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---