ash: fix globbing bugs when using glibc glob()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
19
shell/ash_test/ash-glob/glob_dir.right
Normal file
19
shell/ash_test/ash-glob/glob_dir.right
Normal file
@@ -0,0 +1,19 @@
|
||||
dirtest/z.tmp
|
||||
dirtest/z.tmp
|
||||
dirtest/z.tmp
|
||||
dirtest/z.tmp
|
||||
dirtest/z.tmp
|
||||
dirtest/z.tmp
|
||||
dirtest/z.tmp
|
||||
dirtest/z.tmp
|
||||
dirtest/z.tmp
|
||||
|
||||
*/z.tmp
|
||||
*/z.*
|
||||
*/?.*
|
||||
*/z*p
|
||||
d*r*e*t/z*p
|
||||
*\/z.tmp
|
||||
*/z.*
|
||||
*/z*p
|
||||
d*r*e*t/z*p
|
25
shell/ash_test/ash-glob/glob_dir.tests
Executable file
25
shell/ash_test/ash-glob/glob_dir.tests
Executable file
@@ -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
|
Reference in New Issue
Block a user