Merge pull request #22 from hercules-ci/unescape-hash-sign

Unescape hash sign
This commit is contained in:
Robert Hensing 2019-09-17 17:01:12 +02:00 committed by GitHub
commit f952568243
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 198 additions and 24 deletions

View file

@ -15,6 +15,8 @@ let
create-tree() { (
mkdir -p "$1"; cd "$1"
touch '#' '#ignored'
touches 1-simpl {1,2,3,4,5,^,$,^$,$^,[,[[,],]],]]],ab,bb,\\,\\\\,simple-test}
touches 1-simpl/1-simpl {1,2,3,4,5,^,$,^$,$^,[,[[,],]],]]],ab,bb,\\,\\\\,simpletest}
touches 1-xxxxx/1-simpl {1,2}
@ -29,6 +31,13 @@ let
touches 5-directory {1,2,3,4,5,^,$,^$,$^,[,[[,],]],]]],ab,bb,\\,\\\\}
mkdir 6-hash
touch '6-hash/a' '6-hash/a#0' '6-hash/a\#1' '6-hash/a\\#2'
touch '6-hash/b' '6-hash/b#0' '6-hash/b\#1' '6-hash/b\\#2'
touch '6-hash/c' '6-hash/c#0' '6-hash/c\#1' '6-hash/c\\#2'
touch '6-hash/d' '6-hash/d#0' '6-hash/d\#1' '6-hash/d\\#2'
touch '6-hash/z' '6-hash/z#0' '6-hash/z\#1' '6-hash/z\\#2'
touches 9-expected {unfiltered,filtered-via-aux-{filter,ignore,filepath}}
touches 10-subdir-ignoring-itself/foo {foo,bar}
@ -77,6 +86,15 @@ let
4-*/other.html$
5-*/
# A hash sign on a line
#
6-hash/a*#
6-hash/b*\#
6-hash/c*\\#
6-hash/d*\\\#
6-hash/z*
'';
ignoresAux = "/9-expected/*filepath\n";