From 00610db7fe660b98a4f2763df7dfe0399afdbb95 Mon Sep 17 00:00:00 2001 From: Galen Wright-Watson Date: Fri, 1 Feb 2019 14:45:29 -0800 Subject: [PATCH] Update: docmented install script's handling of metacharacters in passwords. --- tests/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/README.md b/tests/README.md index feddd0d7560..835ecf37f82 100644 --- a/tests/README.md +++ b/tests/README.md @@ -14,10 +14,17 @@ $ tests/bin/install.sh [db-host] ``` -Sample usage: +The `` will be set as given. Previously, you would have needed to escape certain characters (forward & backward slashes, and ampersand), but install.sh now escapes them when it needs to internally. You may still need to quote strings with backslashes to prevent them from being processed by the shell or other programs. + +Sample usages: $ tests/bin/install.sh woocommerce_tests root root + # The actual password only has a single backslash, but it's escaped + # to prevent the shell and PHP from treating it as a backspace character + $ tests/bin/install.sh woocommerce_tests root 'a\\b/&' + # Previously, the password would have had to be passed as 'a\\\\b\/\&' + **Important**: The `` database will be created if it doesn't exist and all data will be removed during testing. ## Running Tests