Like RoCk said, that could easily remove your files.
**Be careful NOT to test what he showed you. If you want to test it, change "remove" to "echo".
You may want to prevent problems by automatically removing $'s, but I'm not sure of a better solution or if that catches all possible problems.