Why does "sudo -i" break variable expansion, while it works without "-i"?

Subscribers:
4,140
Published on ● Video Link: https://www.youtube.com/watch?v=LNmvvVxkOCU



Duration: 2:59
1 views
0


Why does "sudo -i" break variable expansion, while it works without "-i"?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(unix.stackexchange.com/users/545639/romaincan)RomainCan |
(unix.stackexchange.com/users/116858/kusalananda)Kusalananda |
(unix.stackexchange.com/users/170373/ilkkachu)ilkkachu |
A special thanks goes out to the (https://unix.stackexchange.com/questions/721421/why-does-sudo-i-break-variable-expansion-while-it-works-without-i)Stackexchange community |

I wish you all a wonderful day! Stay safe :)







Tags:
bash
sudo
shell