The "source" command now accepts code from stdin
This commit is contained in:
parent
61fcfd0698
commit
03912a44ab
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue