How to pass command line argument with space in Bash scripts

Viewed 20716

Let's say there is one script s1, and I need to pass argument $1 with value foo bar, with space in it. This can be done

./s1 "foo bar"

however, when I want to run the above command in another script (say s2), how should I put it? If I put it as above, foo bar will be interpreted as two arguments (to s1) rather than one.

3 Answers
Related