mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Use understore in filenames.
This commit is contained in:
parent
9e4363fc1a
commit
e99031f3e2
|
@ -262,9 +262,12 @@ func (cp *compiler) primary(n *parse.Primary) ValuesOpFunc {
|
|||
}
|
||||
return variable(qname)
|
||||
case parse.Wildcard:
|
||||
vs := []Value{GlobPattern{
|
||||
glob.Pattern{[]glob.Segment{wildcardToSegment(n.SourceText())}, ""},
|
||||
0, nil}}
|
||||
seg, err := wildcardToSegment(n.SourceText())
|
||||
if err != nil {
|
||||
cp.errorf("%s", err)
|
||||
}
|
||||
vs := []Value{
|
||||
GlobPattern{glob.Pattern{[]glob.Segment{seg}, ""}, 0, nil}}
|
||||
return func(ec *EvalCtx) []Value {
|
||||
return vs
|
||||
}
|
Loading…
Reference in New Issue
Block a user