I recently did a reinstall of ubuntu 8.04 and many of my scripts started malfunctioning. Checking up on it, I found that all 'tr' operations result in the error 'Broken pipe', as in
chochem@MYLAPTOP:~$ echo test
chochem@MYLAPTOP:~$ echo test | tr -d t
bash: echo: write error: Broken pipe
Further checking: tr can be used but only when given full path, i.e.
chochem@MYLAPTOP:~$ echo test | /usr/bin/tr -d t
(or when settting an alias: alias tr='/usr/bin/tr')
echo $PATH clearly indicates that /usr/bin is in path, and other /usr/bin apps work just fine. tr has execution permissions for everybody. Doing 'tr' just gives me a new line.
Can anybody explain this?