How to pass argument with exclamation mark on Linux? May 15, 2023 by Tarik You should be able to simply wrap things in single quotes in the shell. $ emailsender.py -u username -p 'pass!!'