what's a good way to expand a variable's contents in #posix #shell?

let's say that i have a filename in a variable, and it might contain spaces or single/double quotes, and i want to append it as a parameter in a way that doesn't break. how do i do that?

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!