Files
mercury/scripts/mdb_grep
Zoltan Somogyi 62dda38678 Make the mdb command "dump" give you a message confirming what it did.
Estimated hours taken: 2
Branches: main

Make the mdb command "dump" give you a message confirming what it did.

trace/mercur_trace_cmd_browsing.c:
	Make the mdb command "dump" give you a message confirming what it did,
	unless the user gives the new -q or --quiet option.

doc/user_guide.texi:
	Document the new option.

scripts/mdb_grep:
scripts/mdb_open:
	Specify -q to keep old behavior.

tests/debugger/browser_test.{inp,exp,exp3}:
	Update this test case to test the dump command both with and
	without -q.
2010-09-30 04:21:18 +00:00

9 lines
334 B
Plaintext

# This script saves a term to a file and then invokes grep on the file.
# It is useful for checking if a data structure contains a particular value.
# $1 is a regular expression to search for.
# $2 is any valid term reference accepted by the dump command.
#
dump -q $2 .mdb_grep_tmp
shell grep $1 .mdb_grep_tmp
shell rm .mdb_grep_tmp