The "source" command now accepts code from stdin

This commit is contained in:
John Wiegley 2010-06-26 01:09:07 -04:00
parent 61fcfd0698
commit 03912a44ab

View file

@ -171,6 +171,8 @@ value_t source_command(call_scope_t& args)
if (args.has(0)) {
stream.reset(new ifstream(path(args.get<string>(0))));
in = stream.get();
} else {
in = &std::cin;
}
symbol_scope_t file_locals(args);