Green’s Dictionary of Slang

shorts, the n.1

[caught short adj. (1)]

(US) an urgent need to visit the lavatory; the inability to control one’s bowels and/or bladder.

[US]B.L. Bowen ‘Word-List From Western New York’ in DN III:vi 448: shorts, n. Diarrhea.
[US]R. Campbell Wizard of La-La Land (1999) 108: All he said was he’d had his gall bladder removed and when he ate anything greasy he got the shorts.