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
Code:
chochem@MYLAPTOP:~$ echo test
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.
Code:
chochem@MYLAPTOP:~$ echo test | /usr/bin/tr -d t
es
(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?