From 8e2c9cc2fcfe23625e1c5845f99dfc93e022fc9b Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 2 Oct 2016 15:17:15 +0200 Subject: ash: fix globbing bugs when using glibc glob() Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-glob/glob_dir.tests | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 shell/ash_test/ash-glob/glob_dir.tests (limited to 'shell/ash_test/ash-glob/glob_dir.tests') diff --git a/shell/ash_test/ash-glob/glob_dir.tests b/shell/ash_test/ash-glob/glob_dir.tests new file mode 100755 index 000000000..dc4c4fdb5 --- /dev/null +++ b/shell/ash_test/ash-glob/glob_dir.tests @@ -0,0 +1,25 @@ +mkdir dirtest + >dirtest/z.tmp + +echo */z.tmp +echo */z.* +echo */?.* +echo */z*p +echo d*r*e*t/z*p +echo *"/z.t"mp +echo */z"."* +echo *"/z"*"p" +echo "d"*r*e*t"/"z*p +echo +echo \*/z.tmp +echo "*"/z.* +echo */"?".* +echo */z"*p" +echo d*r*e\*t/z*p +echo *"\\/z.t"mp +echo */z".*" +echo *"/z"\*"p" +echo "d*"r*e*t"/"z*p + +rm dirtest/z.tmp +rmdir dirtest -- cgit v1.2.3