Problem
I have two bash files: run.sh and run_1.sh. When I try to call run_1.sh from run.sh the loop doesnt work anymore as you can see in the output. I really don't understand what's happening. run_1.sh is located in sub-directory /runs/.
run.sh
1 #!/bin/bash
2
3 for i in {1..10}
4 do
5 echo $i
6 done
7
8 sh /runs/run_1.sh
runs/run_1.sh"
#!/bin/bash
for i in {11..20}
do
echo $i
done
output
1
2
3
4
5
6
7
8
9
10
{11..20}