We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79fc3ca commit 6a49909Copy full SHA for 6a49909
Documentation/CodingGuidelines
@@ -61,6 +61,14 @@ For shell scripts specifically (not exhaustive):
61
redirection target in a variable (as shown above), our code does so
62
because some versions of bash issue a warning without the quotes.
63
64
+ (incorrect)
65
+ cat hello > world < universe
66
+ echo hello >$world
67
+
68
+ (correct)
69
+ cat hello >world <universe
70
+ echo hello >"$world"
71
72
- We prefer $( ... ) for command substitution; unlike ``, it
73
properly nests. It should have been the way Bourne spelled
74
it from day one, but unfortunately isn't.
0 commit comments