2012-09-09 Paul Smith <psmith@gnu.org>
+ * scripts/features/escape: Check that backslashes before
+ non-special characters are not removed.
+
* scripts/features/utf8: New test for UTF-8 support.
See Savannah bug #36529.
$details = "\
Make sure that escaping of ':' works in target names.
Make sure escaping of whitespace works in target names.
-Make sure that escaping of '#' works.";
+Make sure that escaping of '#' works.
+Make sure that backslash before non-special characters are kept.";
close(MAKEFILE);
!,
'', "foo:bar\nfoo\\:bar\nfoo\\\\:bar\nfoo\n");
+# Test backslash before non-special chars: should be kept as-is
+
+run_make_test(q!
+all: ..\foo
+.DEFAULT: ; @echo '$@'
+!,
+ '', '..\foo');
+
# This tells the test driver that the perl test script executed properly.
1;