concat all args when using globs
parent
92da426ae8
commit
5f2417bf9e
3
main.cc
3
main.cc
|
@ -493,7 +493,8 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
os.cs.add_command("glob", "s", [](cscript::CsState &cs, const char *lst) {
|
os.cs.add_command("glob", "C", [](cscript::CsState &cs,
|
||||||
|
ostd::ConstCharRange lst) {
|
||||||
ostd::Vector<ostd::String> fnames = cscript::util::list_explode(lst);
|
ostd::Vector<ostd::String> fnames = cscript::util::list_explode(lst);
|
||||||
cs.result->set_str(ob_expand_globs(fnames).disown());
|
cs.result->set_str(ob_expand_globs(fnames).disown());
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue