Bayonet

A daggerlike steel weapon that is attached to or at the muzzle of a gun and used for stabbing or slashing in hand-to-hand combat.