Shell: tr can only be used when given full path (despite being in $PATH)
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 Code:
chochem@MYLAPTOP:~$ echo test | /usr/bin/tr -d t 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? |
What is the output of this command?
Code:
type tr |
D'oh... an empty shell script by the same name was in my home bin directory :o Thanks for the suggestion.
|
All times are GMT -5. The time now is 12:15 AM. |