I am confused in a single line bash script
for i in "$@"
do
set -- "$@" "$i" // what does it mean?
done
I can understand that $ @ is all the variables that are passed, and I am every element that is in $ @. However, I canβt understand what makes
set -- "$@" "$i"
facilities.
Thank.
Teddy source
share