busybox/testsuite/tr/tr-rejects-wrong-class
Bernhard Reutner-Fischer eceecea568 - 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
2007-03-30 14:43:27 +00:00

20 lines
887 B
Plaintext

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