I have the follow files in my folder:
a.jpg b.jpg c.jpg
And I have the follow script:
#!/bin/bash
echo $1
If I run:
script.sh $(ls)
My output is:
a.jpg
But I want to be:
a.jpg b.jpg c.jpg
So, Why doesn't echo prints all the output from ls?