How do you shell expand your variables and why?zephyr@lemmy.world to Programming@programming.dev – 63 points – 1 years ago28Post a CommentPreviewYou are viewing a single commentView all commentsShow the parent commentThis is the best way. It's also the way the Shellcheck wants sometimes recommends.@bloopernova As you mention it, here the links for anyone interested: Online tool https://www.shellcheck.net/ and you can install it locally too https://github.com/koalaman/shellcheck .While this looks like a handy tool, it does make me think shell scripting itself needs a cleaner approach than what we have currently.1 more...1 more...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.1 more...
This is the best way. It's also the way the Shellcheck wants sometimes recommends.@bloopernova As you mention it, here the links for anyone interested: Online tool https://www.shellcheck.net/ and you can install it locally too https://github.com/koalaman/shellcheck .While this looks like a handy tool, it does make me think shell scripting itself needs a cleaner approach than what we have currently.1 more...1 more...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.1 more...
@bloopernova As you mention it, here the links for anyone interested: Online tool https://www.shellcheck.net/ and you can install it locally too https://github.com/koalaman/shellcheck .While this looks like a handy tool, it does make me think shell scripting itself needs a cleaner approach than what we have currently.1 more...1 more...
While this looks like a handy tool, it does make me think shell scripting itself needs a cleaner approach than what we have currently.1 more...
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.
This is the best way. It's also the way the Shellcheck
wantssometimes recommends.@bloopernova As you mention it, here the links for anyone interested: Online tool https://www.shellcheck.net/ and you can install it locally too https://github.com/koalaman/shellcheck .
While this looks like a handy tool, it does make me think shell scripting itself needs a cleaner approach than what we have currently.
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.