Due to the confined space in a trench, pistols were often preferred to rifles and some other rather strange weapons were also carried. like trench knives and even sharpened entrenching tools.
Of course what was wanted vs what was available were two different things.
If you mention strange weapons, don't forget the Winchester 1897 pump shotgun. That would have been a ferocious trench weapon in WW1