mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-08 10:23:03 +00:00
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.
8 lines
225 B
Plaintext
8 lines
225 B
Plaintext
# This script saves a term to a file and then opens the file with an
|
|
# editor.
|
|
# $1 is any valid term reference accepted by the dump command.
|
|
#
|
|
dump -q $1 .mdb_open_tmp
|
|
shell ${EDITOR-vi} .mdb_open_tmp
|
|
shell rm .mdb_open_tmp
|