Bayonets have been fixed and used in Iraq and Afghanistan in the last 20 years multiple times, by UK and US units.
IIRC, in each case the enemy turned and ran when faced with "proper angry" bayonet charges.
It seems that large unhappy men running at them with knives attached to rifles made them reconsider their willingness to fight -- that is, there's still a psychological effect.