diff options
author | Björn Gustavsson <[email protected]> | 2017-09-14 12:52:02 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-10-04 11:37:43 +0200 |
commit | 36dc96339e2b2b692e6dfe6de43db3a2348732bd (patch) | |
tree | ef62a03b52cc627de29fb5ad7250984c0a8a41f9 /make | |
parent | 49d0857634fc1a990ab97a144787288570fa2507 (diff) | |
download | otp-36dc96339e2b2b692e6dfe6de43db3a2348732bd.tar.gz otp-36dc96339e2b2b692e6dfe6de43db3a2348732bd.tar.bz2 otp-36dc96339e2b2b692e6dfe6de43db3a2348732bd.zip |
Implement escaping of special characters in wildcards
Allow characters with special meaning to be escaped using
\ (which must be writen as \\ in a string). That allows
matching of filenames containing characters that are special
in wildcards.
This is an incompatible change, but note that the use of backslashes
in wildcards would already work differently on Windows and Unix. Take
for example this call:
filelib:wildcard("a\\b")
On Windows, filelib:wildcard/1 would look for a directory named
"a", and a file or directory named "b" inside it.
On Unix, filelib:wildcard/1 would look for a file named "a\\b".
With this commit applied, filelib:wildcard/1 will look for
a file named "ab" on both Windows and Unix.
https://bugs.erlang.org/browse/ERL-451
Diffstat (limited to 'make')
0 files changed, 0 insertions, 0 deletions