diff options
author | Bernhard Reutner-Fischer | 2007-03-30 14:43:27 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2007-03-30 14:43:27 +0000 |
commit | eceecea568a483a3acec2d4c03228b39ae2d6501 (patch) | |
tree | 7faa56bbba59529be6f671026ae97bda84267917 /testsuite/tr/tr-rejects-wrong-class | |
parent | 52a9db6bb874c9ce7a8b7e935ba3ebbefdf3f7d4 (diff) | |
download | busybox-eceecea568a483a3acec2d4c03228b39ae2d6501.zip busybox-eceecea568a483a3acec2d4c03228b39ae2d6501.tar.gz |
- fix bug where we did not reject invalid classes like '[[:alpha'
- debloat while at it:
text data bss dec hex filename
1554 0 19 1573 625 tr.o.oorig
1357 0 16 1373 55d tr.o
Diffstat (limited to 'testsuite/tr/tr-rejects-wrong-class')
-rw-r--r-- | testsuite/tr/tr-rejects-wrong-class | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/tr/tr-rejects-wrong-class b/testsuite/tr/tr-rejects-wrong-class new file mode 100644 index 0000000..9753936 --- /dev/null +++ b/testsuite/tr/tr-rejects-wrong-class @@ -0,0 +1,19 @@ +echo t12esting | tr -d '[[:alpha:]]' > logfile.gnu +echo t12esting | tr -d '[:alpha:]' >> logfile.gnu +echo t12esting | tr -d '[[:alpha:]' >> logfile.gnu +echo t12esting | tr -d '[[:alpha:' >> logfile.gnu +echo t12esting | tr -d '[[:alpha' >> logfile.gnu +echo t12esting | tr -d '[:alpha:]' >> logfile.gnu +echo t12esting | tr -d '[:alpha:' >> logfile.gnu +echo t12esting | tr -d '[:alpha' >> logfile.gnu + +echo t12esting | busybox tr -d '[[:alpha:]]' > logfile.bb +echo t12esting | busybox tr -d '[:alpha:]' >> logfile.bb +echo t12esting | busybox tr -d '[[:alpha:]' >> logfile.bb +echo t12esting | busybox tr -d '[[:alpha:' >> logfile.bb +echo t12esting | busybox tr -d '[[:alpha' >> logfile.bb +echo t12esting | busybox tr -d '[:alpha:]' >> logfile.bb +echo t12esting | busybox tr -d '[:alpha:' >> logfile.bb +echo t12esting | busybox tr -d '[:alpha' >> logfile.bb + +diff -u logfile.gnu logfile.bb |