@@ -39,6 +39,7 @@ After=baz.service
39
39
& UnitOption {"Unit" , "Description" , "Bar" },
40
40
& UnitOption {"Unit" , "Requires" , "baz.service" },
41
41
& UnitOption {"Unit" , "After" , "baz.service" },
42
+ & UnitOption {"Unit" , "" , "" },
42
43
},
43
44
},
44
45
@@ -56,8 +57,14 @@ Pants=on
56
57
` ),
57
58
[]* UnitOption {
58
59
& UnitOption {"Unit" , "Description" , "Foo" },
60
+ & UnitOption {"Unit" , "" , "\n " },
61
+ & UnitOption {"Unit" , "" , "" },
59
62
& UnitOption {"Service" , "ExecStart" , "/usr/bin/sleep infinity" },
63
+ & UnitOption {"Service" , "" , "\n " },
64
+ & UnitOption {"Service" , "" , "" },
60
65
& UnitOption {"X-Third-Party" , "Pants" , "on" },
66
+ & UnitOption {"X-Third-Party" , "" , "\n " },
67
+ & UnitOption {"X-Third-Party" , "" , "" },
61
68
},
62
69
},
63
70
@@ -67,7 +74,11 @@ Pants=on
67
74
[Service]
68
75
[X-Third-Party]
69
76
` ),
70
- []* UnitOption {},
77
+ []* UnitOption {
78
+ & UnitOption {"Unit" , "" , "" },
79
+ & UnitOption {"Service" , "" , "" },
80
+ & UnitOption {"X-Third-Party" , "" , "" },
81
+ },
71
82
},
72
83
73
84
// multiple values not special-cased
@@ -77,6 +88,7 @@ Environment= "FOO=BAR" "BAZ=QUX"
77
88
` ),
78
89
[]* UnitOption {
79
90
& UnitOption {"Service" , "Environment" , "\" FOO=BAR\" \" BAZ=QUX\" " },
91
+ & UnitOption {"Service" , "" , "" },
80
92
},
81
93
},
82
94
@@ -89,6 +101,7 @@ Description= Unnecessarily wrapped \
89
101
[]* UnitOption {
90
102
& UnitOption {"Unit" , "Description" , `Unnecessarily wrapped \
91
103
words here` },
104
+ & UnitOption {"Unit" , "" , "" },
92
105
},
93
106
},
94
107
@@ -106,6 +119,7 @@ Description=Bar
106
119
` ),
107
120
[]* UnitOption {
108
121
& UnitOption {"Unit" , "Description" , "Bar" },
122
+ & UnitOption {"Unit" , "" , "" },
109
123
},
110
124
},
111
125
121
135
` ),
122
136
[]* UnitOption {
123
137
& UnitOption {"Unit" , "Description" , "Bar\\ \n # comment alpha" },
138
+ & UnitOption {"Unit" , "" , "\n " },
124
139
& UnitOption {"Unit" , "Description" , "Bar\\ \n # comment bravo \\ \n Baz" },
140
+ & UnitOption {"Unit" , "" , "" },
125
141
},
126
142
},
127
143
@@ -133,6 +149,7 @@ Description=Bar
133
149
` ),
134
150
[]* UnitOption {
135
151
& UnitOption {"Unit" , "Description" , "Bar" },
152
+ & UnitOption {"Unit" , "" , "" },
136
153
},
137
154
},
138
155
@@ -144,6 +161,7 @@ Description=Bar
144
161
` ),
145
162
[]* UnitOption {
146
163
& UnitOption {"Unit" , "Description" , "Bar" },
164
+ & UnitOption {"Unit" , "" , "" },
147
165
},
148
166
},
149
167
@@ -154,6 +172,7 @@ Description=Bar
154
172
` ),
155
173
[]* UnitOption {
156
174
& UnitOption {"Unit" , "<<<<<<<<" , "Bar" },
175
+ & UnitOption {"Unit" , "" , "" },
157
176
},
158
177
},
159
178
@@ -164,6 +183,7 @@ Some Thing = Bar
164
183
` ),
165
184
[]* UnitOption {
166
185
& UnitOption {"Unit" , "Some Thing" , "Bar" },
186
+ & UnitOption {"Unit" , "" , "" },
167
187
},
168
188
},
169
189
@@ -173,6 +193,7 @@ Some Thing = Bar
173
193
Description=Bar` ),
174
194
[]* UnitOption {
175
195
& UnitOption {"Unit" , "Description" , "Bar" },
196
+ & UnitOption {"Unit" , "" , "" },
176
197
},
177
198
},
178
199
@@ -182,6 +203,7 @@ Description=Bar`),
182
203
Description=Bar \` ),
183
204
[]* UnitOption {
184
205
& UnitOption {"Unit" , "Description" , "Bar \\ " },
206
+ & UnitOption {"Unit" , "" , "" },
185
207
},
186
208
},
187
209
@@ -191,6 +213,7 @@ Description=Bar \`),
191
213
µ☃=ÇôrèÕ$` ),
192
214
[]* UnitOption {
193
215
& UnitOption {"©" , "µ☃" , "ÇôrèÕ$" },
216
+ & UnitOption {"©" , "" , "" },
194
217
},
195
218
},
196
219
@@ -200,7 +223,9 @@ Description=Bar \`),
200
223
Description =words here
201
224
` ),
202
225
[]* UnitOption {
226
+ & UnitOption {"Unit" , "" , " " },
203
227
& UnitOption {"Unit" , "Description" , "words here" },
228
+ & UnitOption {"Unit" , "" , "" },
204
229
},
205
230
},
206
231
@@ -210,6 +235,7 @@ Description=Bar \`),
210
235
Description= words here ` ),
211
236
[]* UnitOption {
212
237
& UnitOption {"Unit" , "Description" , "words here" },
238
+ & UnitOption {"Unit" , "" , "" },
213
239
},
214
240
},
215
241
@@ -220,6 +246,7 @@ Description= words here \
220
246
` ),
221
247
[]* UnitOption {
222
248
& UnitOption {"Unit" , "Description" , "words here \\ \n " },
249
+ & UnitOption {"Unit" , "" , "" },
223
250
},
224
251
},
225
252
@@ -230,6 +257,7 @@ ExecStart=/bin/bash -c "while true; do echo \"ping\"; sleep 1; done"
230
257
` ),
231
258
[]* UnitOption {
232
259
& UnitOption {"Service" , "ExecStart" , `/bin/bash -c "while true; do echo \"ping\"; sleep 1; done"` },
260
+ & UnitOption {"Service" , "" , "" },
233
261
},
234
262
},
235
263
@@ -239,6 +267,7 @@ ExecStart=/bin/bash -c "while true; do echo \"ping\"; sleep 1; done"
239
267
ExecStart=/bin/bash echo poof \ ` ),
240
268
[]* UnitOption {
241
269
& UnitOption {"Service" , "ExecStart" , `/bin/bash echo poof \` },
270
+ & UnitOption {"Service" , "" , "" },
242
271
},
243
272
},
244
273
// a long unit file line that's just equal to the maximum permitted length
@@ -247,6 +276,7 @@ ExecStart=/bin/bash echo poof \ `),
247
276
ExecStart=/bin/bash -c "echo ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................."` ),
248
277
[]* UnitOption {
249
278
& UnitOption {"Service" , "ExecStart" , `/bin/bash -c "echo ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................."` },
279
+ & UnitOption {"Service" , "" , "" },
250
280
},
251
281
},
252
282
// the same, but with a trailing newline
@@ -258,6 +288,7 @@ Option=value
258
288
[]* UnitOption {
259
289
& UnitOption {"Service" , "ExecStart" , `/bin/bash -c "echo ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................."` },
260
290
& UnitOption {"Service" , "Option" , "value" },
291
+ & UnitOption {"Service" , "" , "" },
261
292
},
262
293
},
263
294
}
0 commit comments