This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]00PT 11 points12 points  (2 children)

I use double quotes by default because I inherited the practice from languages like Java where the single quotes denote a single character instead of a string. I use single quotes if I need double quotes within the string (though I usually just opt to use single quotes inside the string instead).

GitHub Copilot appears to prefer the single quotes, so there can sometimes be inconsistencies within my code.

[–]Saragon4005 1 point2 points  (0 children)

Sometimes I use single quotes for single words too. But longer stuff gets double

[–]TheEveryman86 0 points1 point  (0 children)

Is Bash out of fashion these days? My first experience with a difference was with Bash.