Can script arguments contain spaces?

Yes, script arguments can contain spaces. To pass arguments with spaces, you need to enclose them in quotes. For example:

./script.sh "argument with spaces" another_argument

In this case, "argument with spaces" will be treated as a single argument, while another_argument will be treated as a separate argument.

0 Comments

no data
Be the first to share your comment!