]> git.plutz.net Git - serve0/commitdiff
adopt pipe sign from filterstring into sed expression
authorpaul <paul@plutz.net>
Wed, 2 Mar 2016 13:24:46 +0000 (13:24 +0000)
committerpaul <paul@plutz.net>
Wed, 2 Mar 2016 13:24:46 +0000 (13:24 +0000)
svn path=/trunk/; revision=103

pages/list.sh

index 9f2b9eeb761c26c4f4bf66394d72eb895311783c..39a6ccbea7e64855400e61ca81833aedfd8fa3f2 100755 (executable)
@@ -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}}"