I'm trying to assign everything else after strings to $@ but orange is also picked. I thought the shift will take as rest of the args but the output is picking orange too.
$ cat try.sh
#!/usr/bin/bash
str1="$1"
str2="$2"; shift
echo "$str1"
echo "$str2"
for i in "$@"
do
echo "rest are $i"
done
./try.sh apple orange 3 4 5
apple
orange
rest are orange
rest are 3
rest are 4
rest are 5
help shiftin a bash session.