Skip to content

Commit cf2419b

Browse files
committed
[:xopen] failed to check for dry run
1 parent dc2cb49 commit cf2419b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cmds.io.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,6 +1378,10 @@ com_xopen(exec_context& ec, std::string cmdline, std::vector<std::string>& args)
13781378
return ec.make_error("expecting file name to open");
13791379
}
13801380

1381+
if (ec.ec_dry_run) {
1382+
return Ok(retval);
1383+
}
1384+
13811385
auto pat = trim(remaining_args(cmdline, args));
13821386

13831387
shlex lexer(pat);

0 commit comments

Comments
 (0)