diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Test.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Test.java index a2d25294085..b3acc986d64 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Test.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Test.java @@ -39,7 +39,7 @@ public static void registerCommands(CommandFactory factory) { } public static final String NAME = "test"; - public static final String USAGE = "-[defsz] "; + public static final String USAGE = "-[defswrz] "; public static final String DESCRIPTION = "Answer various questions about , with result via exit status.\n" + " -d return 0 if is a directory.\n" diff --git a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md index b37bdc1704d..7df2cce574b 100644 --- a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md +++ b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md @@ -733,7 +733,7 @@ Exit Code: Returns 0 on success and -1 on error. test ---- -Usage: `hadoop fs -test -[defsz] URI` +Usage: `hadoop fs -test -[defswrz] URI` Options: @@ -741,8 +741,8 @@ Options: * -e: if the path exists, return 0. * -f: if the path is a file, return 0. * -s: if the path is not empty, return 0. -* -r: if the path exists and read permission is granted, return 0. * -w: if the path exists and write permission is granted, return 0. +* -r: if the path exists and read permission is granted, return 0. * -z: if the file is zero length, return 0. diff --git a/hadoop-common-project/hadoop-common/src/test/resources/testConf.xml b/hadoop-common-project/hadoop-common/src/test/resources/testConf.xml index e38c2592f85..392d39170d5 100644 --- a/hadoop-common-project/hadoop-common/src/test/resources/testConf.xml +++ b/hadoop-common-project/hadoop-common/src/test/resources/testConf.xml @@ -923,7 +923,7 @@ RegexpComparator - ^-test -\[defsz\] <path> :\s* + ^-test -\[defswrz\] <path> :\s* RegexpComparator @@ -931,7 +931,7 @@ RegexpComparator - ^\s*-[defsz]\s+return 0 if .* + ^\s*-[defswrz]\s+return 0 if .*