From unknown Sun Jun 22 08:01:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27916: sed is limited to 24 patterns when using the delete command Resent-From: jean-christophe manciot Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Wed, 02 Aug 2017 13:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27916 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: 27916@debbugs.gnu.org X-Debbugs-Original-To: bug-sed@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150168098814992 (code B ref -1); Wed, 02 Aug 2017 13:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Aug 2017 13:36:28 +0000 Received: from localhost ([127.0.0.1]:37853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dctp6-0003tj-5g for submit@debbugs.gnu.org; Wed, 02 Aug 2017 09:36:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52145) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dctp4-0003tV-En for submit@debbugs.gnu.org; Wed, 02 Aug 2017 09:36:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dctox-00019k-V9 for submit@debbugs.gnu.org; Wed, 02 Aug 2017 09:36:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44166) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dctox-00019M-RT for submit@debbugs.gnu.org; Wed, 02 Aug 2017 09:36:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dctow-0004IZ-4U for bug-sed@gnu.org; Wed, 02 Aug 2017 09:36:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dctov-000172-2q for bug-sed@gnu.org; Wed, 02 Aug 2017 09:36:18 -0400 Received: from mail-it0-x22d.google.com ([2607:f8b0:4001:c0b::22d]:35306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dctou-000137-TG for bug-sed@gnu.org; Wed, 02 Aug 2017 09:36:17 -0400 Received: by mail-it0-x22d.google.com with SMTP id h199so23814364ith.0 for ; Wed, 02 Aug 2017 06:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3uQYMjVRAI+WDrWbTcLFeAaHhqQjOOxQEOSul62IVjU=; b=hEfpDM3MqrUnz6RtXIp//1W5V0gyQjagCCDY//pAMmgAnWhYWh1GOuEBzSLiLnFZ4y cFHArj1t6BRvrdG0sksSZ6JEFrxI3B9j5b0m0bbtNvyc7eG23Z6oAk46r2yil/q0uavh mTDRBbAOFhAFPGtynJfl/YySDGhMvY/xd3OAAIAwE3Hbdzyed94gmIgOJ99QCwU911C2 wGyKiLmFFQy9oOR2ZpWnL9W1PJSmFtbUgO+YNgqsARv0GV+jyn2OxyXN/PuaGiSLvZdw siqIFWoMP1frUs6H5ICpBl/LKwQx+XaLateWnP3WnoMocy21ZDEo/djePBP6l/9s4Qg8 G/rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3uQYMjVRAI+WDrWbTcLFeAaHhqQjOOxQEOSul62IVjU=; b=gy0FVqxxvU35zQ5ariYifJF2aN1CfG+oNd9nWTdGhNiXppa3U7A2KrtgiyXDU4oy6o 1zvXkidUJGoY35YcSzwt05VAAltbTCYvF8R5ydL2B3wl1i+dOt7yGXVseWP4uIB7Qc9c LDYuA4opmp7lTUY0Wldc1mw8zMip6GIWXA5MKLfyF3fKNz6N7N5111qKdmKVZr8UFQIC SRrGacfgT1lnKLh5c3/NK3FpZ/oQ31K3zStHPABCOqyydYeusFpdO31f76vCq/bZB6kT PZVAIGT4f8ijbunz3NAc3fcQI14azFYYUIG2QsMtTA2FlFm67wUP8SGuXhLPw5BvRDbs kLCg== X-Gm-Message-State: AIVw112nZOwMfGaNTZzZPbwQNDzqhW4oyIcG4oRiHJw+Th3zIfndIKbB mXy6z//ugE6KuQ6OoPhv7JmctBmbvn27OJk= X-Received: by 10.36.68.71 with SMTP id o68mr5729678ita.115.1501680974070; Wed, 02 Aug 2017 06:36:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.197.194 with HTTP; Wed, 2 Aug 2017 06:35:53 -0700 (PDT) From: jean-christophe manciot Date: Wed, 2 Aug 2017 15:35:53 +0200 Message-ID: Content-Type: multipart/alternative; boundary="001a1143e6240688640555c55996" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a1143e6240688640555c55996 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable sed (GNU sed) 4.4 *With 24 patterns, sed filters correctly 'build-aux':* root@samsung-ubuntu:/home/actionmystique/src# find -L -path './*/build-*.sh' 2>/dev/null | sed -E '/\.gd.*$/d; /.*git-Tao_Te_eChing.*$/d; /.*\.gnupg.*$/d; /.*google-chrome.*$/d; /.*\.gpg$/d; /.*_key.*$/d; /.*\/\.key.*$/d; /.*\/key.*$/d; /.*\.key$/d; /.*_Key.*$/d; /.*\..*\.luks$/d; /.*OAuth2.*$/d; /.*\/\.passwd.*$/d; /.*\/passwd.*$/d; /.*\/\.password.*$/d; /.*\/password.*$/d; /.*\.pem$/d; /.*\.ssh.*$/d; /.*\/tmp.*$/d; /.*\/Trash.*$/d; /.*Webmin.*$/d; /.*xca.*$/d; /.*build-area.*$/d; /.*build-aux.*$/d' | grep -- "build-aux" root@samsung-ubuntu:/home/actionmystique/src# *With 25 patterns, sed fails to filter 'build-aux*': root@samsung-ubuntu:/home/actionmystique/src# find -L -path './*/build-*.sh' 2>/dev/null | sed -E '/.*ExpressVPN/client\..*$/d; /\.gd.*$/d; /.*git-Tao_Te_eChing.*$/d; /.*\.gnupg.*$/d; /.*google-chrome.*$/d; /.*\.gpg$/d; /.*_key.*$/d; /.*\/\.key.*$/d; /.*\/key.*$/d; /.*\.key$/d; /.*_Key.*$/d; /.*\..*\.luks$/d; /.*OAuth2.*$/d; /.*\/\.passwd.*$/d; /.*\/passwd.*$/d; /.*\/\.password.*$/d; /.*\/password.*$/d; /.*\.pem$/d; /.*\.ssh.*$/d; /.*\/tmp.*$/d; /.*\/Trash.*$/d; /.*Webmin.*$/d; /.*xca.*$/d; /.*build-area.*$/d; /.*build-aux.*$/d' | grep -- "build-aux" ./GTK-VNC/git-gtk-vnc/build-aux/ltmain.sh ./Xtables/xtables-addons/debian/xtables-addons-dkms/usr/src/xtables-addons-= 2.12/build-aux/ltmain.sh ./Xtables/xtables-addons/build-aux/ltmain.sh ... *With the same 25 patterns grep filters correctly 'build-aux':* root@samsung-ubuntu:/home/actionmystique/src# find -L -path './*/build-*.sh' 2>/dev/null | grep -vP -- '.*ExpressVPN/client\..*$|\.gd.*$|.*git-Tao_Te_eChing.*$|.*\.gnupg.*$|.*goo= gle-chrome.*$|.*\.gpg$|.*_key.*$|.*\/\.key.*$|.*\/key.*$|.*\.key$|.*_Key.*$= |.*\..*\.luks$|.*OAuth2.*$|.*\/\.passwd.*$|.*\/passwd.*$|.*\/\.password.*$|= .*\/password.*$|.*\.pem$|.*\.ssh.*$|.*\/tmp.*$|.*\/Trash.*$|.*Webmin.*$|.*x= ca.*$|.*build-area.*$|.*build-aux.*$' | grep -- "build-aux" root@samsung-ubuntu:/home/actionmystique/src# It's strange that 24 is the limit. --=20 Jean-Christophe Manciot --001a1143e6240688640555c55996 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
sed (GNU sed) 4.4

With= 24 patterns, sed filters correctly 'build-aux':
=
root@samsung-ubuntu:/home/actionmystique/src# find -L -path './*/b= uild-*.sh' 2>/dev/null | sed -E '/\.gd.*$/d; /.*git-Tao_Te_eChin= g.*$/d; /.*\.gnupg.*$/d; /.*google-chrome.*$/d; /.*\.gpg$/d; /.*_key.*$/d; = /.*\/\.key.*$/d; /.*\/key.*$/d; /.*\.key$/d; /.*_Key.*$/d; /.*\..*\.luks$/d= ; /.*OAuth2.*$/d; /.*\/\.passwd.*$/d; /.*\/passwd.*$/d; /.*\/\.password.*$/= d; /.*\/password.*$/d; /.*\.pem$/d; /.*\.ssh.*$/d; /.*\/tmp.*$/d; /.*\/Tras= h.*$/d; /.*Webmin.*$/d; /.*xca.*$/d; /.*build-area.*$/d; /.*build-aux.*$/d&= #39; | grep -- "build-aux"
root@samsung-ubuntu:/home/ac= tionmystique/src#

With 25 patterns= , sed fails to filter 'build-aux':
root@sams= ung-ubuntu:/home/actionmystique/src# find -L -path './*/build-*.sh'= 2>/dev/null | sed -E '/.*ExpressVPN/client\..*$/d; /\.gd.*$/d; /.*g= it-Tao_Te_eChing.*$/d; /.*\.gnupg.*$/d; /.*google-chrome.*$/d; /.*\.gpg$/d;= /.*_key.*$/d; /.*\/\.key.*$/d; /.*\/key.*$/d; /.*\.key$/d; /.*_Key.*$/d; /= .*\..*\.luks$/d; /.*OAuth2.*$/d; /.*\/\.passwd.*$/d; /.*\/passwd.*$/d; /.*\= /\.password.*$/d; /.*\/password.*$/d; /.*\.pem$/d; /.*\.ssh.*$/d; /.*\/tmp.= *$/d; /.*\/Trash.*$/d; /.*Webmin.*$/d; /.*xca.*$/d; /.*build-area.*$/d; /.*= build-aux.*$/d' | grep -- "build-aux"
./GTK-VNC/git= -gtk-vnc/build-aux/ltmain.sh
./Xtables/xtables-addons/debian/= xtables-addons-dkms/usr/src/xtables-addons-2.12/build-aux/ltmain.sh
./Xtables/xtables-addons/build-aux/ltmain.sh
...

With the same 25 patterns grep=C2=A0filters correct= ly 'build-aux':
root@samsung-ubun= tu:/home/actionmystique/src# find -L -path './*/build-*.sh' 2>/d= ev/null | grep -vP -- '.*ExpressVPN/client\..*$|\.gd.*$|.*git-Tao_Te_eC= hing.*$|.*\.gnupg.*$|.*google-chrome.*$|.*\.gpg$|.*_key.*$|.*\/\.key.*$|.*\= /key.*$|.*\.key$|.*_Key.*$|.*\..*\.luks$|.*OAuth2.*$|.*\/\.passwd.*$|.*\/pa= sswd.*$|.*\/\.password.*$|.*\/password.*$|.*\.pem$|.*\.ssh.*$|.*\/tmp.*$|.*= \/Trash.*$|.*Webmin.*$|.*xca.*$|.*build-area.*$|.*build-aux.*$' | grep = -- "build-aux"
root@samsung-ubuntu:/home/act= ionmystique/src#

I= t's strange that 24 is the limit.
--
Jean-Christophe Manciot
--001a1143e6240688640555c55996-- From unknown Sun Jun 22 08:01:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27916: sed is limited to 24 patterns when using the delete command Resent-From: Assaf Gordon Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Thu, 03 Aug 2017 05:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27916 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: jean-christophe manciot , 27916@debbugs.gnu.org Received: via spool by 27916-submit@debbugs.gnu.org id=B27916.15017398928248 (code B ref 27916); Thu, 03 Aug 2017 05:59:01 +0000 Received: (at 27916) by debbugs.gnu.org; 3 Aug 2017 05:58:12 +0000 Received: from localhost ([127.0.0.1]:39238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dd99A-00028y-3b for submit@debbugs.gnu.org; Thu, 03 Aug 2017 01:58:12 -0400 Received: from mail-it0-f43.google.com ([209.85.214.43]:38585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dd998-00028l-Bg for 27916@debbugs.gnu.org; Thu, 03 Aug 2017 01:58:10 -0400 Received: by mail-it0-f43.google.com with SMTP id h199so4036643ith.1 for <27916@debbugs.gnu.org>; Wed, 02 Aug 2017 22:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=YtkRe2VdyUJESbAAgZMKpXAFhH88nXeWBGqDVsnmppI=; b=nrh7ssO0B9sRcj1D4tMcaLgUWVBU/jr2vG96QLgJTalIbsWK5ivrHElxU8ocG0908A gFL8w5O2eE0L9kjJ+qMVPJ7C8avUe/S8sOCpbyqV3/gJdTyuggeMZPH/jZRy2mTF2eut PWZD4dK/snyDBknSJ9icyUsRWavD6kbqTiuifX9ARYUS+tonY/Botcs91uJurgr+323D KzUHbQvAqBx/14XyWSr0P4uANS0dFI0ackAODtGxvKcEo7RNfe1pKbTIGuz5z97JSqgp vmsTFfeU9AoO2PaZKqmtDxd05HTinTdf6Bg8JtQEMReTxHMwPaLW6F5peCDKaq0b6xzZ GQAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YtkRe2VdyUJESbAAgZMKpXAFhH88nXeWBGqDVsnmppI=; b=dKObsAzfL4jHTM5DcwWZn1BKgarfu2LsPe5ZjP9b4suDJ6Xt/RRn1atMaEPlyLxLxT R6QmdbTGW/RQtbTUppKamMR3jM0kuXIAtHJewre4ZbF+eOzTNd0Mi3iltN9sM2IMvDou dD2bhhwi2BkTxT4izutA/mzewZNgc7UdDqLYGyWQb/IHDvuV+vrMF9bZSRkynkBJhZkg pu6Ob/wELVe4zTGOasrHl/8pg5xYx5ShQ0TqjCLQyp3Eg3tv93PbKOlyPsIP6I2tT9mN p6qAmqFWkQT5S746kdGQwsdWB7z6GpwyixP/mQBRmrpzwD/kQoPUnVikO3HB//gxDv+w G6xg== X-Gm-Message-State: AIVw111PIAr1HapOdVjkC+ngjESNXKuOrMAog9fsXMcLdusamHfxwV1d qTQC1Vgrxb1N8RVSyBc= X-Received: by 10.36.154.67 with SMTP id l64mr588174ite.87.1501739884423; Wed, 02 Aug 2017 22:58:04 -0700 (PDT) Received: from jitterbug.erlich.nygenome.org (S010664777daa62d3.cg.shawcable.net. [70.72.44.2]) by smtp.gmail.com with ESMTPSA id p63sm2802403itg.32.2017.08.02.22.58.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 22:58:03 -0700 (PDT) References: From: Assaf Gordon Message-ID: <2b3885aa-1a01-7557-40a3-8f380df0e2e6@gmail.com> Date: Wed, 2 Aug 2017 23:58:02 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Hello, from a cursory look: On 08/02/2017 07:35 AM, jean-christophe manciot wrote: > *With 25 patterns, sed fails to filter 'build-aux*': > root@samsung-ubuntu:/home/actionmystique/src# find -L -path > './*/build-*.sh' 2>/dev/null | sed -E '/.*ExpressVPN/client\..*$/d; > /\.gd.*$/d; /.*git-Tao_Te_eChing.*$/d; /.*\.gnupg.*$/d; [...] Could it be that this 25th pattern that you've added (as the first sed command) has an un-escaped slash, which messes up the rest of the patterns ? That is, the sed command "/.*ExpressVPN/client\..*$/d;' actually means: match lines with "ExpressVPN", then "c" (change) the lines to "lient\n..*$d/;". Example: $ echo "ExpressVPN" | sed -E '/.*ExpressVPN/client\..*$/d;' lient..*$/d; And, if this is the first pattern, then all the rest of the text is treated as the same line to change, and not as additional sed patterns: $ echo "ExpressVPN" | sed -E '/.*ExpressVPN/client\..*$/d; /Anything Else/d' lient..*$/d; /Anything Else/d This is a just a quick guess, I haven't been able to reproduce what you're seeing otherwise. regards, - assaf From unknown Sun Jun 22 08:01:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27916: sed is limited to 24 patterns when using the delete command Resent-From: jean-christophe manciot Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Thu, 03 Aug 2017 09:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27916 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: Assaf Gordon Cc: 27916@debbugs.gnu.org Received: via spool by 27916-submit@debbugs.gnu.org id=B27916.150175088724226 (code B ref 27916); Thu, 03 Aug 2017 09:02:02 +0000 Received: (at 27916) by debbugs.gnu.org; 3 Aug 2017 09:01:27 +0000 Received: from localhost ([127.0.0.1]:39288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddC0V-0006Ig-F5 for submit@debbugs.gnu.org; Thu, 03 Aug 2017 05:01:27 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:37786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddC0T-0006IR-RQ for 27916@debbugs.gnu.org; Thu, 03 Aug 2017 05:01:26 -0400 Received: by mail-io0-f179.google.com with SMTP id c74so4497279iod.4 for <27916@debbugs.gnu.org>; Thu, 03 Aug 2017 02:01:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7fpdJdAhAGY5dhIbkdG8iuvG3j9bqVwbsUJf6gOx6M8=; b=Pu56P2au+OkXMGi8FgGDrA3GBPW+VlNEblPxJjkrPk34Lh3NAgotMUyuknJ7F9oGn1 KFW0XKtvRahAePrLlsg4m2fzLSggbQH6mVAEOSFUzOMKNFZzyakpqbXr9S+Qok62jEyE 6Ef7WlH+YUVX/Y/xEojuDp51Tzv+X0G+DKPAD0tOU35vb7Bg2mbgjoiEajwdXAtxxnGN lHDRnVwtBUneWeTKw8OG7n5RArEzQTWK/cBAfjdUUcCdNDIjnhOXqslvKY+bIHoi2MwT URriXg6y53KC745mW16u5xidBtgQ5amiOKuE82/n9owlz6ApCvbnPz2jHPsWybfwZocg N0Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7fpdJdAhAGY5dhIbkdG8iuvG3j9bqVwbsUJf6gOx6M8=; b=rrGETE2LhKofMbOM3LkCwZdl7Eb9ebiZL7dycamh2e1sLiTr+k4fL5VYDfvF8lNZRZ NTmK46fzwlaSdhsTwCbxNsjim4kCxVoZbbOWk688Xi1X/ahjt+P5rbZ9W0PYF1Gas8v9 ikg8O3R/TzffcttWsRzbuFSgu27FVU8oHmwpXBuqXk+QIZlVPbXSd0DoJfuD5HcPKNLj it5bGXY3Z66DIrNjvLKmjQAL1T8Ojt+pwSWw7vGqLYO/9DnlxQG/zAyamcM57ZMRWUlh a4s1mXx/Q4Os7qOPH9L94NtQEyErWWn8F//RFICpcL8Au8TACeDfhkzq4UmSnGlgpBjp 687Q== X-Gm-Message-State: AIVw110Pn+vPfgKaTLsDZjmGO2sg9UbmmLqTGjBTlRtny14Tfr9/lAsU 3J2D+b7mXHp8PRx6C62J37xRawU3IQ== X-Received: by 10.107.129.232 with SMTP id l101mr885322ioi.151.1501750879961; Thu, 03 Aug 2017 02:01:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.197.130 with HTTP; Thu, 3 Aug 2017 02:00:59 -0700 (PDT) In-Reply-To: <2b3885aa-1a01-7557-40a3-8f380df0e2e6@gmail.com> References: <2b3885aa-1a01-7557-40a3-8f380df0e2e6@gmail.com> From: jean-christophe manciot Date: Thu, 3 Aug 2017 11:00:59 +0200 Message-ID: Content-Type: multipart/alternative; boundary="001a113ed2bebdcb730555d59f40" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --001a113ed2bebdcb730555d59f40 Content-Type: text/plain; charset="UTF-8" You're right, my bad. On Thu, Aug 3, 2017 at 7:58 AM, Assaf Gordon wrote: > Hello, > > from a cursory look: > > On 08/02/2017 07:35 AM, jean-christophe manciot wrote: > > *With 25 patterns, sed fails to filter 'build-aux*': > > root@samsung-ubuntu:/home/actionmystique/src# find -L -path > > './*/build-*.sh' 2>/dev/null | sed -E '/.*ExpressVPN/client\..*$/d; > > /\.gd.*$/d; /.*git-Tao_Te_eChing.*$/d; /.*\.gnupg.*$/d; > [...] > > Could it be that this 25th pattern that you've added (as the first > sed command) has an un-escaped slash, which messes up the rest of the > patterns ? > > That is, the sed command "/.*ExpressVPN/client\..*$/d;' > actually means: match lines with "ExpressVPN", > then "c" (change) the lines to "lient\n..*$d/;". > > Example: > > $ echo "ExpressVPN" | sed -E '/.*ExpressVPN/client\..*$/d;' > lient..*$/d; > > And, if this is the first pattern, then all the rest of the text > is treated as the same line to change, and not as additional sed > patterns: > > $ echo "ExpressVPN" | sed -E '/.*ExpressVPN/client\..*$/d; > /Anything Else/d' > > lient..*$/d; /Anything Else/d > > > This is a just a quick guess, I haven't been able to reproduce > what you're seeing otherwise. > > regards, > - assaf > > -- Jean-Christophe --001a113ed2bebdcb730555d59f40 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You're right, my bad.
=
On Thu, Aug 3, 2017 at 7:58 AM, Assaf Gordon= <assafgordon@gmail.com> wrote:
Hello,

from a cursory look:

On 08/02/2017 07:35 AM, jean-christophe manciot wrote:
> *With 25 patterns, sed fails to filter 'build-aux*':
> root@samsung-ubuntu:/home/actionmystique/src# find -L -path
> './*/build-*.sh' 2>/dev/null | sed -E '/.*ExpressVPN/cl= ient\..*$/d;
> /\.gd.*$/d; /.*git-Tao_Te_eChing.*$/d; /.*\.gnupg.*$/d;
[...]

Could it be that this 25th pattern that you've added (as the first
sed command) has an un-escaped slash, which messes up the rest of the
patterns ?

That is, the sed command "/.*ExpressVPN/client\..*$/d;'
actually means: match lines with "ExpressVPN",
then "c" (change) the lines to "lient\n..*$d/;".

Example:

=C2=A0 $ echo "ExpressVPN" | sed -E '/.*ExpressVPN/client\..*= $/d;'
=C2=A0 lient..*$/d;

And, if this is the first pattern, then all the rest of the text
is treated as the same line to change, and not as additional sed
patterns:

=C2=A0 $ echo "ExpressVPN" | sed -E '/.*ExpressVPN/client\..*= $/d;
=C2=A0 /Anything Else/d'

=C2=A0 lient..*$/d; /Anything Else/d


This is a just a quick guess, I haven't been able to reproduce
what you're seeing otherwise.

regards,
=C2=A0- assaf




--
Jean-Christophe
--001a113ed2bebdcb730555d59f40-- From unknown Sun Jun 22 08:01:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: jean-christophe manciot Subject: bug#27916: closed (Re: bug#27916: sed is limited to 24 patterns when using the delete command) Message-ID: References: X-Gnu-PR-Message: they-closed 27916 X-Gnu-PR-Package: sed Reply-To: 27916@debbugs.gnu.org Date: Thu, 03 Aug 2017 22:07:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1501798022-10407-1" This is a multi-part message in MIME format... ------------=_1501798022-10407-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #27916: sed is limited to 24 patterns when using the delete command which was filed against the sed package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 27916@debbugs.gnu.org. --=20 27916: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D27916 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1501798022-10407-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 27916-done) by debbugs.gnu.org; 3 Aug 2017 22:06:49 +0000 Received: from localhost ([127.0.0.1]:40463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddOGW-0002hF-V9 for submit@debbugs.gnu.org; Thu, 03 Aug 2017 18:06:49 -0400 Received: from mail-vk0-f49.google.com ([209.85.213.49]:36105) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddOGV-0002h2-DF for 27916-done@debbugs.gnu.org; Thu, 03 Aug 2017 18:06:47 -0400 Received: by mail-vk0-f49.google.com with SMTP id u133so10355480vke.3 for <27916-done@debbugs.gnu.org>; Thu, 03 Aug 2017 15:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=iIiTiWfhqCYjB4WY7f+hp825+LRNMx28HujVAHepmpM=; b=scon6T38JRjQyz6BJuMhWvqZhZYnw+bL61KFEiCJxP4bsgD3/39/qVTKqvNK9hSBoV 3bDXojDd6Fvg1PeIdYAUr8T/Ge1v5LkOexAYJtwMTM3prrkRTjsvV7OdE5AfRb50hz79 yGOf3qViRVnseZgA7iAaH0cATsTJ1VExX0+6sCH4U6Oab+x/NiiVUC5eXPk8ilvo4R8s tGAGGq/u8oSDZhmD97EqByu8qNqaHrMBot31a8aNyOn3eFw84ED0hCjKcLDcqBonHT68 QQn3IfWXQFrSqUXbuuehDAYywvOPGBIKdrc4P4IDoFMq2W48f9Ng5EVldUwsS5GJNKqe rv9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=iIiTiWfhqCYjB4WY7f+hp825+LRNMx28HujVAHepmpM=; b=CnFy53+076MW3TSADy4OJjhD+8S/lljwxrQlXLZWTZQGCWg8Br0gLuQULLUX2qS7C3 H5fZUA6oivfz7WVPSore9jsqOqnfS5lgUu/PQzIJPXTmRH89EP35Qq643k8+nQOsyhP9 NsG1kulFFZoMDO4HRRiwFHq9Vn/mMqebu+XOe8xuF2G1C1nKEKYWeKUVWYXs9BbIH8LF Go0vo+6bqZG/A+IxtvtzEycRdAG5Bc/ATlnIlJpgINaf9aSgthD5NR3eancdCgtD2s8b uyPhhyjgpiZxlleRKUKi5vKXAsJ8NpzwzbPjF0dpu6WDsW6Dj/cYBJBgmtucm2zwViJw qfkw== X-Gm-Message-State: AHYfb5hvUerActT9B0+F6phJqlOihlgkHAObfLIJ8wm3SKX+a5d1MrYe 3xKkyI+OCK3aOe23RVjUHGdcr56Gxw== X-Received: by 10.31.7.211 with SMTP id 202mr199305vkh.212.1501798001956; Thu, 03 Aug 2017 15:06:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.75.161 with HTTP; Thu, 3 Aug 2017 15:06:21 -0700 (PDT) In-Reply-To: References: <2b3885aa-1a01-7557-40a3-8f380df0e2e6@gmail.com> From: Jim Meyering Date: Thu, 3 Aug 2017 15:06:21 -0700 X-Google-Sender-Auth: 45ezBg62NOGSnz_4d-BSwaFQmJs Message-ID: Subject: Re: bug#27916: sed is limited to 24 patterns when using the delete command To: jean-christophe manciot Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 27916-done Cc: Assaf Gordon , 27916-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) tags 27916 + notabug thanks On Thu, Aug 3, 2017 at 2:00 AM, jean-christophe manciot wrote: > You're right, my bad. Marking as resolved/notabug in our tracker. ------------=_1501798022-10407-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Aug 2017 13:36:28 +0000 Received: from localhost ([127.0.0.1]:37853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dctp6-0003tj-5g for submit@debbugs.gnu.org; Wed, 02 Aug 2017 09:36:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52145) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dctp4-0003tV-En for submit@debbugs.gnu.org; Wed, 02 Aug 2017 09:36:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dctox-00019k-V9 for submit@debbugs.gnu.org; Wed, 02 Aug 2017 09:36:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44166) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dctox-00019M-RT for submit@debbugs.gnu.org; Wed, 02 Aug 2017 09:36:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dctow-0004IZ-4U for bug-sed@gnu.org; Wed, 02 Aug 2017 09:36:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dctov-000172-2q for bug-sed@gnu.org; Wed, 02 Aug 2017 09:36:18 -0400 Received: from mail-it0-x22d.google.com ([2607:f8b0:4001:c0b::22d]:35306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dctou-000137-TG for bug-sed@gnu.org; Wed, 02 Aug 2017 09:36:17 -0400 Received: by mail-it0-x22d.google.com with SMTP id h199so23814364ith.0 for ; Wed, 02 Aug 2017 06:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3uQYMjVRAI+WDrWbTcLFeAaHhqQjOOxQEOSul62IVjU=; b=hEfpDM3MqrUnz6RtXIp//1W5V0gyQjagCCDY//pAMmgAnWhYWh1GOuEBzSLiLnFZ4y cFHArj1t6BRvrdG0sksSZ6JEFrxI3B9j5b0m0bbtNvyc7eG23Z6oAk46r2yil/q0uavh mTDRBbAOFhAFPGtynJfl/YySDGhMvY/xd3OAAIAwE3Hbdzyed94gmIgOJ99QCwU911C2 wGyKiLmFFQy9oOR2ZpWnL9W1PJSmFtbUgO+YNgqsARv0GV+jyn2OxyXN/PuaGiSLvZdw siqIFWoMP1frUs6H5ICpBl/LKwQx+XaLateWnP3WnoMocy21ZDEo/djePBP6l/9s4Qg8 G/rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3uQYMjVRAI+WDrWbTcLFeAaHhqQjOOxQEOSul62IVjU=; b=gy0FVqxxvU35zQ5ariYifJF2aN1CfG+oNd9nWTdGhNiXppa3U7A2KrtgiyXDU4oy6o 1zvXkidUJGoY35YcSzwt05VAAltbTCYvF8R5ydL2B3wl1i+dOt7yGXVseWP4uIB7Qc9c LDYuA4opmp7lTUY0Wldc1mw8zMip6GIWXA5MKLfyF3fKNz6N7N5111qKdmKVZr8UFQIC SRrGacfgT1lnKLh5c3/NK3FpZ/oQ31K3zStHPABCOqyydYeusFpdO31f76vCq/bZB6kT PZVAIGT4f8ijbunz3NAc3fcQI14azFYYUIG2QsMtTA2FlFm67wUP8SGuXhLPw5BvRDbs kLCg== X-Gm-Message-State: AIVw112nZOwMfGaNTZzZPbwQNDzqhW4oyIcG4oRiHJw+Th3zIfndIKbB mXy6z//ugE6KuQ6OoPhv7JmctBmbvn27OJk= X-Received: by 10.36.68.71 with SMTP id o68mr5729678ita.115.1501680974070; Wed, 02 Aug 2017 06:36:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.197.194 with HTTP; Wed, 2 Aug 2017 06:35:53 -0700 (PDT) From: jean-christophe manciot Date: Wed, 2 Aug 2017 15:35:53 +0200 Message-ID: Subject: sed is limited to 24 patterns when using the delete command To: bug-sed@gnu.org Content-Type: multipart/alternative; boundary="001a1143e6240688640555c55996" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a1143e6240688640555c55996 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable sed (GNU sed) 4.4 *With 24 patterns, sed filters correctly 'build-aux':* root@samsung-ubuntu:/home/actionmystique/src# find -L -path './*/build-*.sh' 2>/dev/null | sed -E '/\.gd.*$/d; /.*git-Tao_Te_eChing.*$/d; /.*\.gnupg.*$/d; /.*google-chrome.*$/d; /.*\.gpg$/d; /.*_key.*$/d; /.*\/\.key.*$/d; /.*\/key.*$/d; /.*\.key$/d; /.*_Key.*$/d; /.*\..*\.luks$/d; /.*OAuth2.*$/d; /.*\/\.passwd.*$/d; /.*\/passwd.*$/d; /.*\/\.password.*$/d; /.*\/password.*$/d; /.*\.pem$/d; /.*\.ssh.*$/d; /.*\/tmp.*$/d; /.*\/Trash.*$/d; /.*Webmin.*$/d; /.*xca.*$/d; /.*build-area.*$/d; /.*build-aux.*$/d' | grep -- "build-aux" root@samsung-ubuntu:/home/actionmystique/src# *With 25 patterns, sed fails to filter 'build-aux*': root@samsung-ubuntu:/home/actionmystique/src# find -L -path './*/build-*.sh' 2>/dev/null | sed -E '/.*ExpressVPN/client\..*$/d; /\.gd.*$/d; /.*git-Tao_Te_eChing.*$/d; /.*\.gnupg.*$/d; /.*google-chrome.*$/d; /.*\.gpg$/d; /.*_key.*$/d; /.*\/\.key.*$/d; /.*\/key.*$/d; /.*\.key$/d; /.*_Key.*$/d; /.*\..*\.luks$/d; /.*OAuth2.*$/d; /.*\/\.passwd.*$/d; /.*\/passwd.*$/d; /.*\/\.password.*$/d; /.*\/password.*$/d; /.*\.pem$/d; /.*\.ssh.*$/d; /.*\/tmp.*$/d; /.*\/Trash.*$/d; /.*Webmin.*$/d; /.*xca.*$/d; /.*build-area.*$/d; /.*build-aux.*$/d' | grep -- "build-aux" ./GTK-VNC/git-gtk-vnc/build-aux/ltmain.sh ./Xtables/xtables-addons/debian/xtables-addons-dkms/usr/src/xtables-addons-= 2.12/build-aux/ltmain.sh ./Xtables/xtables-addons/build-aux/ltmain.sh ... *With the same 25 patterns grep filters correctly 'build-aux':* root@samsung-ubuntu:/home/actionmystique/src# find -L -path './*/build-*.sh' 2>/dev/null | grep -vP -- '.*ExpressVPN/client\..*$|\.gd.*$|.*git-Tao_Te_eChing.*$|.*\.gnupg.*$|.*goo= gle-chrome.*$|.*\.gpg$|.*_key.*$|.*\/\.key.*$|.*\/key.*$|.*\.key$|.*_Key.*$= |.*\..*\.luks$|.*OAuth2.*$|.*\/\.passwd.*$|.*\/passwd.*$|.*\/\.password.*$|= .*\/password.*$|.*\.pem$|.*\.ssh.*$|.*\/tmp.*$|.*\/Trash.*$|.*Webmin.*$|.*x= ca.*$|.*build-area.*$|.*build-aux.*$' | grep -- "build-aux" root@samsung-ubuntu:/home/actionmystique/src# It's strange that 24 is the limit. --=20 Jean-Christophe Manciot --001a1143e6240688640555c55996 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
sed (GNU sed) 4.4

With= 24 patterns, sed filters correctly 'build-aux':
=
root@samsung-ubuntu:/home/actionmystique/src# find -L -path './*/b= uild-*.sh' 2>/dev/null | sed -E '/\.gd.*$/d; /.*git-Tao_Te_eChin= g.*$/d; /.*\.gnupg.*$/d; /.*google-chrome.*$/d; /.*\.gpg$/d; /.*_key.*$/d; = /.*\/\.key.*$/d; /.*\/key.*$/d; /.*\.key$/d; /.*_Key.*$/d; /.*\..*\.luks$/d= ; /.*OAuth2.*$/d; /.*\/\.passwd.*$/d; /.*\/passwd.*$/d; /.*\/\.password.*$/= d; /.*\/password.*$/d; /.*\.pem$/d; /.*\.ssh.*$/d; /.*\/tmp.*$/d; /.*\/Tras= h.*$/d; /.*Webmin.*$/d; /.*xca.*$/d; /.*build-area.*$/d; /.*build-aux.*$/d&= #39; | grep -- "build-aux"
root@samsung-ubuntu:/home/ac= tionmystique/src#

With 25 patterns= , sed fails to filter 'build-aux':
root@sams= ung-ubuntu:/home/actionmystique/src# find -L -path './*/build-*.sh'= 2>/dev/null | sed -E '/.*ExpressVPN/client\..*$/d; /\.gd.*$/d; /.*g= it-Tao_Te_eChing.*$/d; /.*\.gnupg.*$/d; /.*google-chrome.*$/d; /.*\.gpg$/d;= /.*_key.*$/d; /.*\/\.key.*$/d; /.*\/key.*$/d; /.*\.key$/d; /.*_Key.*$/d; /= .*\..*\.luks$/d; /.*OAuth2.*$/d; /.*\/\.passwd.*$/d; /.*\/passwd.*$/d; /.*\= /\.password.*$/d; /.*\/password.*$/d; /.*\.pem$/d; /.*\.ssh.*$/d; /.*\/tmp.= *$/d; /.*\/Trash.*$/d; /.*Webmin.*$/d; /.*xca.*$/d; /.*build-area.*$/d; /.*= build-aux.*$/d' | grep -- "build-aux"
./GTK-VNC/git= -gtk-vnc/build-aux/ltmain.sh
./Xtables/xtables-addons/debian/= xtables-addons-dkms/usr/src/xtables-addons-2.12/build-aux/ltmain.sh
./Xtables/xtables-addons/build-aux/ltmain.sh
...

With the same 25 patterns grep=C2=A0filters correct= ly 'build-aux':
root@samsung-ubun= tu:/home/actionmystique/src# find -L -path './*/build-*.sh' 2>/d= ev/null | grep -vP -- '.*ExpressVPN/client\..*$|\.gd.*$|.*git-Tao_Te_eC= hing.*$|.*\.gnupg.*$|.*google-chrome.*$|.*\.gpg$|.*_key.*$|.*\/\.key.*$|.*\= /key.*$|.*\.key$|.*_Key.*$|.*\..*\.luks$|.*OAuth2.*$|.*\/\.passwd.*$|.*\/pa= sswd.*$|.*\/\.password.*$|.*\/password.*$|.*\.pem$|.*\.ssh.*$|.*\/tmp.*$|.*= \/Trash.*$|.*Webmin.*$|.*xca.*$|.*build-area.*$|.*build-aux.*$' | grep = -- "build-aux"
root@samsung-ubuntu:/home/act= ionmystique/src#

I= t's strange that 24 is the limit.
--
Jean-Christophe Manciot
--001a1143e6240688640555c55996-- ------------=_1501798022-10407-1--