5 of 6
replaced http://stackoverflow.com/ with https://stackoverflow.com/
user avatar
user avatar
This Stack Overflow answer was the only one to trap space and dash chars:
# For null cmd arguments checking
to_check=' -t'
space_n_dash_chars=' -'
[[ $to_check == *"$space_n_dash_chars"* ]] && echo found
Yordan Georgiev
- 5.5k
- 2
- 60
- 58