implement status is-breakpoint

This implements `status is-breakpoint` that returns true if the current
shell prompt is displayed in the context of a `breakpoint` command.

This also fixes several bugs. Most notably making `breakpoint` a no-op if
the shell isn't interactive. Also, typing `breakpoint` at an interactive
prompt should be an error rather than creating a new nested debugging
context.

Partial fix for #1310
This commit is contained in:
Kurtis Rader
2017-06-19 21:05:34 -07:00
parent d234a1870b
commit bd299e96b2
15 changed files with 85 additions and 33 deletions

View File

@@ -4,7 +4,7 @@ string match: [
string match: ^
# string invalidarg
string: Unknown subcommand 'invalidarg'
string: Subcommand 'invalidarg' is not valid
Standard input (line 183):
string invalidarg; and echo "unexpected exit 0" >&2
^