There are two bash scripts in the directory:
foo.sh
#!/usr/bin/env bash
./bar.sh $@
bar.sh
#!/usr/bin/env bash
echo $#
When I run ./foo.sh 1 " "
, get 1
instead of 2
. So " "
argument is ignored when passed to ./bar.sh
.
How can I pass " "
to ./bar.sh
?