concat all args when using globs

master
Daniel Kolesa 2015-08-25 16:07:15 -07:00
parent 92da426ae8
commit 5f2417bf9e
1 changed files with 2 additions and 1 deletions

View File

@ -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);
cs.result->set_str(ob_expand_globs(fnames).disown());
});