What causes greenish bowel movements?

Possibly you ate something that had a lot of green it like spinach or salad greens.