From 03912a44ab77f473dc1fa0e51559cbe800e0dfbc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 26 Jun 2010 01:09:07 -0400 Subject: The "source" command now accepts code from stdin --- src/expr.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/expr.cc') diff --git a/src/expr.cc b/src/expr.cc index 878da3f7..bcf83edb 100644 --- a/src/expr.cc +++ b/src/expr.cc @@ -171,6 +171,8 @@ value_t source_command(call_scope_t& args) if (args.has(0)) { stream.reset(new ifstream(path(args.get(0)))); in = stream.get(); + } else { + in = &std::cin; } symbol_scope_t file_locals(args); -- cgit v1.2.3