blob: 83ee40bf403d37df66570c593e5acd5be8ab7dc1 [file] [log] [blame]
Denys Vlasenko4142f012017-07-05 22:19:28 +02001# Testing glob-escaping of every ASCII punctuation char
2# Some chars have more than one test
3# 21..2f
4case '!' in [\!] ) echo ok;; *) echo 'WRONG!';; esac
5case '"' in [\"] ) echo ok;; *) echo 'WRONG"';; esac
6case '#' in [\#] ) echo ok;; *) echo 'WRONG#';; esac
7case '$' in [\$] ) echo ok;; *) echo 'WRONG$';; esac
8case '%' in [\%] ) echo ok;; *) echo 'WRONG%';; esac
9case '&' in [\&] ) echo ok;; *) echo 'WRONG&';; esac
10case "'" in [\'] ) echo ok;; *) echo "WRONG'";; esac
11case '(' in [\(] ) echo ok;; *) echo 'WRONG(';; esac
12case ')' in [\)] ) echo ok;; *) echo 'WRONG)';; esac
13case '*' in [\*] ) echo ok;; *) echo 'WRONG*';; esac
14case '+' in [\+] ) echo ok;; *) echo 'WRONG+';; esac
15case ',' in [\,] ) echo ok;; *) echo 'WRONG,';; esac
16case '-' in [\-] ) echo ok;; *) echo 'WRONG-';; esac
17case '-' in [a\-c]) echo ok;; *) echo 'WRONGa\-c';; esac
18case '.' in [\.] ) echo ok;; *) echo 'WRONG.';; esac
19case '/' in [\/] ) echo ok;; *) echo 'WRONG/';; esac
20# 3a..40
21case ':' in [\:] ) echo ok;; *) echo 'WRONG:';; esac
22case ';' in [\;] ) echo ok;; *) echo 'WRONG;';; esac
23case '<' in [\<] ) echo ok;; *) echo 'WRONG<';; esac
24case '=' in [\=] ) echo ok;; *) echo 'WRONG=';; esac
25case '>' in [\>] ) echo ok;; *) echo 'WRONG>';; esac
26case '?' in [\?] ) echo ok;; *) echo 'WRONG?';; esac
27case '@' in [\@] ) echo ok;; *) echo 'WRONG@';; esac
28# 5b..60
29case '[' in [\[] ) echo ok;; *) echo 'WRONG[';; esac
30case '\' in [\\] ) echo ok;; *) echo 'WRONG\';; esac
31case '\' in \\ ) echo ok;; *) echo 'WRONG\\';; esac
32case ']' in [\]] ) echo ok;; *) echo 'WRONG]';; esac
33case ']' in [a\]]) echo ok;; *) echo 'WRONGa]';; esac
34case '^' in [\^] ) echo ok;; *) echo 'WRONG^';; esac
35case '_' in [\_] ) echo ok;; *) echo 'WRONG_';; esac
36case '`' in [\`] ) echo ok;; *) echo 'WRONG`';; esac
37# 7b..7e
38case '{' in [\{] ) echo ok;; *) echo 'WRONG{';; esac
39case '|' in [\|] ) echo ok;; *) echo 'WRONG|';; esac
40case '}' in [\}] ) echo ok;; *) echo 'WRONG}';; esac
41case '~' in [\~] ) echo ok;; *) echo 'WRONG~';; esac