diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-26 01:09:07 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-26 01:09:07 -0400 |
commit | 03912a44ab77f473dc1fa0e51559cbe800e0dfbc (patch) | |
tree | 935b7cbb90b979b34d4ef37e6d92c53d35752ff5 /src/expr.cc | |
parent | 61fcfd0698e91ab98705aba0884f5b73259056b6 (diff) | |
download | fork-ledger-03912a44ab77f473dc1fa0e51559cbe800e0dfbc.tar.gz fork-ledger-03912a44ab77f473dc1fa0e51559cbe800e0dfbc.tar.bz2 fork-ledger-03912a44ab77f473dc1fa0e51559cbe800e0dfbc.zip |
The "source" command now accepts code from stdin
Diffstat (limited to 'src/expr.cc')
-rw-r--r-- | src/expr.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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<string>(0)))); in = stream.get(); + } else { + in = &std::cin; } symbol_scope_t file_locals(args); |