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 ff765fb commit 41f4c50Copy full SHA for 41f4c50
shellwords_test.go
@@ -285,6 +285,19 @@ func TestEnvArgumentsFail(t *testing.T) {
285
if err == nil {
286
t.Fatal("Should be an error")
287
}
288
+ _, err = parser.Parse("$FOO")
289
+ if err == nil {
290
+ t.Fatal("Should be an error")
291
+ }
292
+ _, err = parser.Parse("echo $FOO")
293
294
295
296
+ os.Setenv("FOO", "bar `")
297
+ _, err = parser.Parse("$FOO ")
298
299
300
301
302
303
func TestDupEnv(t *testing.T) {
0 commit comments