Whenever I start Terminal or open up a new window, pbpaste always runs. Here's some output:

Code:
Last login: Wed Aug 24 15:33:25 on ttyp1
/Applications/ffmpegX.app//Contents/Resources/pbpaste | sh
Welcome to the Terminal.  Try not to screw up.
ColinsPowerBook:~ colin$ /Applications/ffmpegX.app//Contents/Resources/pbpaste | sh
sh: line 1: You: command not found
ColinsPowerBook:~ colin$
This means that anything on the clipboard would be executed! Quite the security hole. What if "sudo rm -rf /" happened to be on the clipboard... then what?

From a programming standpoint, a simple AppleScript could do the same thing with much less confusion. I'm no AppleScript programmer, but here's some psuedocode for it:
Code:
tell application "Terminal"
    activate
    do script with command "whatevercommand" & " arguments"
     -- splitting the command is required to work around a bug, it might be fixed in OS X 10.4.3
end tell
Hope this helps. In the meantime, though, how do I fix my Terminal?