Why is my vagrant transforming this provision line:
echo "eval \"\$(starship init bash)\"" >> ~/.bashrc
in this line in .bashrc ?
eval __main() { local major="${BASH_VERSINFO[0]}" local minor="${BASH_VERSINFO[1]}" if ((major > 4)) || { ((major == 4)) && ((minor >= 1)); }; then source <(/usr/local/bin/starship init bash --print-full-init) else source /dev/stdin <<<"$(/usr/local/bin/starship init bash --print-full-init)" fi } __main unset -f __main
This is the result of executing $(starship init bash)
but it shouldn't be executing, once I'm only doing an echo.
How can I avoid it ?
Edit
With single quotes the result is the same, yet formatted.
I tried to run the command echo "eval \"\$(starship init bash)\"" >> ~/.bashrc
inside the VM and it worked perfectly.
'
) instead of double-quotes ("
).