bug in tr ?
walter harms
wharms at bfs.de
Fri Feb 20 15:06:30 UTC 2009
Hi List,
i was traceing a bug and found that tr (bb 13.0) seems to have a bug:
echo "19AFH" |./tr -cd "[0-9]"
19
echo "19AFH" |./tr -cd "[0-9A-F]"
bash: echo: write error: Datenübergabe unterbrochen (broken pipe)
./tr -cd "[0-9A-F]" <xx
echo $?
1
reading from a file seems to indicate an error ?
(echo "19AFH" |./tr -cd "[0-9A-F]" works fine with gnu tr)
btw: my first version was echo "19AFH" |./tr -cd "[:xdigit:]" what simply eats anything.
re,
wh
More information about the busybox
mailing list