bash-handbook icon indicating copy to clipboard operation
bash-handbook copied to clipboard

Note to prefer $() over ``, and update single example to conform

Open matthewcurry opened this issue 6 years ago • 2 comments

Hello,

Most code style guides dictate that $() be used instead of `` for command substitution. I made a very small change to your document to encourage its use.

Thanks, Matthew

matthewcurry avatar Oct 20 '19 20:10 matthewcurry

Nice catch, @matthewcurry 😃

I support this 💯 . We might want to swap the order of `` and $() in the prose and sample code block, too, just to reinforce that $() is more common (or should be... 😉 )

samumbach avatar Oct 22 '19 00:10 samumbach

Hey, I added a commit to make the change you suggested.

matthewcurry avatar Oct 27 '19 10:10 matthewcurry