64
How do you shell expand your variables and why?
(lemmy.world)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
@zephyr
echo "${HOME}/docs"
This is the best way. It's also the way the Shellcheck ~~wants~~ sometimes recommends.
This isn't true. Shellcheck doesn't insist on braces unless it thinks you need them.
Oh! I didn't know that (um, obviously lol)
I'll edit my comment.