4142f0187d
Add a testcase which tests all ASCII punctuation escapes. NB: hush is failing this test! Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
42 lines
1.9 KiB
Plaintext
Executable File
42 lines
1.9 KiB
Plaintext
Executable File
# Testing glob-escaping of every ASCII punctuation char
|
|
# Some chars have more than one test
|
|
# 21..2f
|
|
case '!' in [\!] ) echo ok;; *) echo 'WRONG!';; esac
|
|
case '"' in [\"] ) echo ok;; *) echo 'WRONG"';; esac
|
|
case '#' in [\#] ) echo ok;; *) echo 'WRONG#';; esac
|
|
case '$' in [\$] ) echo ok;; *) echo 'WRONG$';; esac
|
|
case '%' in [\%] ) echo ok;; *) echo 'WRONG%';; esac
|
|
case '&' in [\&] ) echo ok;; *) echo 'WRONG&';; esac
|
|
case "'" in [\'] ) echo ok;; *) echo "WRONG'";; esac
|
|
case '(' in [\(] ) echo ok;; *) echo 'WRONG(';; esac
|
|
case ')' in [\)] ) echo ok;; *) echo 'WRONG)';; esac
|
|
case '*' in [\*] ) echo ok;; *) echo 'WRONG*';; esac
|
|
case '+' in [\+] ) echo ok;; *) echo 'WRONG+';; esac
|
|
case ',' in [\,] ) echo ok;; *) echo 'WRONG,';; esac
|
|
case '-' in [\-] ) echo ok;; *) echo 'WRONG-';; esac
|
|
case '-' in [a\-c]) echo ok;; *) echo 'WRONGa\-c';; esac
|
|
case '.' in [\.] ) echo ok;; *) echo 'WRONG.';; esac
|
|
case '/' in [\/] ) echo ok;; *) echo 'WRONG/';; esac
|
|
# 3a..40
|
|
case ':' in [\:] ) echo ok;; *) echo 'WRONG:';; esac
|
|
case ';' in [\;] ) echo ok;; *) echo 'WRONG;';; esac
|
|
case '<' in [\<] ) echo ok;; *) echo 'WRONG<';; esac
|
|
case '=' in [\=] ) echo ok;; *) echo 'WRONG=';; esac
|
|
case '>' in [\>] ) echo ok;; *) echo 'WRONG>';; esac
|
|
case '?' in [\?] ) echo ok;; *) echo 'WRONG?';; esac
|
|
case '@' in [\@] ) echo ok;; *) echo 'WRONG@';; esac
|
|
# 5b..60
|
|
case '[' in [\[] ) echo ok;; *) echo 'WRONG[';; esac
|
|
case '\' in [\\] ) echo ok;; *) echo 'WRONG\';; esac
|
|
case '\' in \\ ) echo ok;; *) echo 'WRONG\\';; esac
|
|
case ']' in [\]] ) echo ok;; *) echo 'WRONG]';; esac
|
|
case ']' in [a\]]) echo ok;; *) echo 'WRONGa]';; esac
|
|
case '^' in [\^] ) echo ok;; *) echo 'WRONG^';; esac
|
|
case '_' in [\_] ) echo ok;; *) echo 'WRONG_';; esac
|
|
case '`' in [\`] ) echo ok;; *) echo 'WRONG`';; esac
|
|
# 7b..7e
|
|
case '{' in [\{] ) echo ok;; *) echo 'WRONG{';; esac
|
|
case '|' in [\|] ) echo ok;; *) echo 'WRONG|';; esac
|
|
case '}' in [\}] ) echo ok;; *) echo 'WRONG}';; esac
|
|
case '~' in [\~] ) echo ok;; *) echo 'WRONG~';; esac
|