Add support for searching multiple patterns with -e.

Also, change -Q/--literal to -F/--fixed-strings because compatibility
with grep is probably better.
This commit is contained in:
Andrew Gallant
2016-09-17 16:55:58 -04:00
parent 0a63158a61
commit f7ee914dd3
2 changed files with 40 additions and 20 deletions

View File

@@ -166,7 +166,7 @@ For the Doctor Watsons of this world, as opposed to the Sherlock
sherlock!(literal, "()", "file", |wd: WorkDir, mut cmd: Command| {
wd.create("file", "blib\n()\nblab\n");
cmd.arg("-Q");
cmd.arg("-F");
let lines: String = wd.stdout(&mut cmd);
assert_eq!(lines, "()\n");
});