This Stack Overflow answer was the only one to trap space and dash chars:
# For null cmd arguments checking
export to_check=' -t'
export space_n_dash_chars=' -'
[[ $to_check == *"$space_n_dash_chars"* ]] && echo found
Yordan Georgiev
- 5.5k
- 2
- 60
- 58