From: paul Date: Wed, 2 Mar 2016 13:24:46 +0000 (+0000) Subject: adopt pipe sign from filterstring into sed expression X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=a2c7984568c57508fb011fe7265a297e18f9c9ea;p=serve0 adopt pipe sign from filterstring into sed expression svn path=/trunk/; revision=103 --- diff --git a/pages/list.sh b/pages/list.sh index 9f2b9ee..39a6ccb 100755 --- a/pages/list.sh +++ b/pages/list.sh @@ -117,7 +117,7 @@ thumblist() { else filterex="s;^([0-9]+\t){3}(.+)\n.*$;\2;p" printf '%s\n' "$filter" |tr '^' '\n' \ - | sed -r 's;[]\/\(\)\\\^\$\|\?\.\+\*\;\[\{\}];\\\\&;g' \ + | sed -r 's;[]\/\(\)\\\^\$\?\.\+\*\;\[\{\}];\\\\&;g' \ | while read each; do [ "${each:0:1}" = '!' ] && filterex="/^[^\n]+\n(.*\|)?(${each#?})(\|.*)?$/d;{${filterex}}" \ || filterex="/^[^\n]+\n(.*\|)?(${each})(\|.*)?$/{${filterex}}"