Skip to content

Commit da4ce5b

Browse files
committed
fix(expand): return nothing if there are no matches
1 parent fb68a5f commit da4ce5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/execext/exec.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ func ExpandFields(s string) ([]string, error) {
128128
Env: expand.FuncEnviron(os.Getenv),
129129
ReadDir2: os.ReadDir,
130130
GlobStar: true,
131+
NullGlob: true,
131132
}
132133
return expand.Fields(cfg, words...)
133134
}

0 commit comments

Comments
 (0)