1name: glob-bad-1 2description: 3 Check that globbing isn't done when glob has syntax error 4file-setup: dir 755 "[x" 5file-setup: file 644 "[x/foo" 6stdin: 7 echo [* 8 echo *[x 9 echo [x/* 10expected-stdout: 11 [* 12 *[x 13 [x/foo 14--- 15 16name: glob-bad-2 17description: 18 Check that symbolic links aren't stat()'d 19category: !os:os2 20file-setup: dir 755 "dir" 21file-setup: symlink 644 "dir/abc" 22 non-existent-file 23stdin: 24 echo d*/* 25 echo d*/abc 26expected-stdout: 27 dir/abc 28 dir/abc 29--- 30 31name: glob-range-1 32description: 33 Test range matching 34file-setup: file 644 ".bc" 35file-setup: file 644 "abc" 36file-setup: file 644 "bbc" 37file-setup: file 644 "cbc" 38file-setup: file 644 "-bc" 39stdin: 40 echo [ab-]* 41 echo [-ab]* 42 echo [!-ab]* 43 echo [!ab]* 44 echo []ab]* 45expected-stdout: 46 -bc abc bbc 47 -bc abc bbc 48 cbc 49 -bc cbc 50 abc bbc 51--- 52 53name: glob-range-2 54description: 55 Test range matching 56 (at&t ksh fails this; POSIX says invalid) 57file-setup: file 644 "abc" 58stdin: 59 echo [a--]* 60expected-stdout: 61 [a--]* 62--- 63 64name: glob-range-3 65description: 66 Check that globbing matches the right things... 67file-setup: file 644 "a�c" 68stdin: 69 echo a[�-�]* 70expected-stdout: 71 a�c 72--- 73 74name: glob-range-4 75description: 76 Results unspecified according to POSIX 77file-setup: file 644 ".bc" 78stdin: 79 echo [a.]* 80expected-stdout: 81 [a.]* 82--- 83 84name: glob-range-5 85description: 86 Results unspecified according to POSIX 87 (at&t ksh treats this like [a-cc-e]*) 88file-setup: file 644 "abc" 89file-setup: file 644 "bbc" 90file-setup: file 644 "cbc" 91file-setup: file 644 "dbc" 92file-setup: file 644 "ebc" 93file-setup: file 644 "-bc" 94stdin: 95 echo [a-c-e]* 96expected-stdout: 97 -bc abc bbc cbc ebc 98--- 99 100