fish-shell/src
Kurtis Rader bd299e96b2 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
2017-06-20 17:18:59 -07:00
..
autoload.cpp style cleanups 2017-05-01 22:05:35 -07:00
autoload.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_bg.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_bg.h split builtin bg into its own module 2017-06-16 21:01:56 -07:00
builtin_bind.cpp style cleanups (make style-all) 2017-06-16 21:01:57 -07:00
builtin_bind.h split builtin block into its own module 2017-06-16 21:01:56 -07:00
builtin_block.cpp style cleanups (make style-all) 2017-06-16 21:01:57 -07:00
builtin_block.h split builtin block into its own module 2017-06-16 21:01:56 -07:00
builtin_builtin.cpp avoid struct name clashes 2017-06-16 21:01:57 -07:00
builtin_builtin.h split builtin builtin into its own module 2017-06-16 21:01:56 -07:00
builtin_cd.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_cd.h split builtin cd into its own module 2017-06-16 21:01:56 -07:00
builtin_command.cpp avoid struct name clashes 2017-06-16 21:01:57 -07:00
builtin_command.h split builtin command into its own module 2017-06-16 21:01:56 -07:00
builtin_commandline.cpp lint cleanup 2017-06-16 21:01:56 -07:00
builtin_commandline.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_complete.cpp more wgetopt cleanup 2017-06-10 12:30:36 -07:00
builtin_complete.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_contains.cpp avoid struct name clashes 2017-06-16 21:01:57 -07:00
builtin_contains.h split builtin contains into its own module 2017-06-16 21:01:56 -07:00
builtin_disown.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_disown.h split builtin disown into its own module 2017-06-16 21:01:56 -07:00
builtin_echo.cpp fix echo -h 2017-06-18 22:10:19 -07:00
builtin_echo.h split builtin echo into its own module 2017-06-16 21:01:56 -07:00
builtin_emit.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_emit.h split builtin emit into its own module 2017-06-16 21:01:56 -07:00
builtin_exit.cpp avoid struct name clashes 2017-06-16 21:01:57 -07:00
builtin_exit.h split builtin exit into its own module 2017-06-16 21:01:56 -07:00
builtin_fg.cpp style cleanups (make style-all) 2017-06-16 21:01:57 -07:00
builtin_fg.h split builtin fg into its own module 2017-06-16 21:01:56 -07:00
builtin_function.cpp fix issues with builtin_function() 2017-06-18 12:55:14 -07:00
builtin_function.h fix issues with builtin_function() 2017-06-18 12:55:14 -07:00
builtin_functions.cpp avoid struct name clashes 2017-06-16 21:01:57 -07:00
builtin_functions.h split builtin functions into its own module 2017-06-16 21:01:56 -07:00
builtin_history.cpp avoid struct name clashes 2017-06-16 21:01:57 -07:00
builtin_history.h split builtin history into its own module 2017-06-16 21:01:56 -07:00
builtin_jobs.cpp lint cleanup 2017-06-16 21:01:56 -07:00
builtin_jobs.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_printf.cpp another step in fixing issue #3985 2017-05-07 21:20:31 -07:00
builtin_printf.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_pwd.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_pwd.h split builtin pwd into its own module 2017-06-16 21:01:56 -07:00
builtin_random.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_random.h split builtin random into its own module 2017-06-16 21:01:56 -07:00
builtin_read.cpp avoid struct name clashes 2017-06-16 21:01:57 -07:00
builtin_read.h split builtin status and read into its own module 2017-06-16 21:01:56 -07:00
builtin_realpath.cpp remove leftover debug printf 2017-06-17 18:39:16 -07:00
builtin_realpath.h split builtin realpath into its own module 2017-06-16 21:01:56 -07:00
builtin_return.cpp avoid struct name clashes 2017-06-16 21:01:57 -07:00
builtin_return.h split builtin return into its own module 2017-06-16 21:01:56 -07:00
builtin_set_color.cpp normalize flag parsing 2017-06-10 12:30:36 -07:00
builtin_set_color.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_set.cpp normalize flag parsing 2017-06-10 12:30:36 -07:00
builtin_set.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_source.cpp change help only cmd opts interface 2017-06-16 21:01:57 -07:00
builtin_source.h split builtin source into its own module 2017-06-16 21:01:56 -07:00
builtin_status.cpp implement status is-breakpoint 2017-06-20 17:18:59 -07:00
builtin_status.h split builtin status and read into its own module 2017-06-16 21:01:56 -07:00
builtin_string.cpp implement status is-breakpoint 2017-06-20 17:18:59 -07:00
builtin_string.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin_test.cpp another step in fixing issue #3985 2017-05-07 21:20:31 -07:00
builtin_test.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_ulimit.cpp more wgetopt cleanup 2017-06-10 12:30:36 -07:00
builtin_ulimit.h implement our own assert() function 2017-02-14 18:48:27 -08:00
builtin.cpp implement status is-breakpoint 2017-06-20 17:18:59 -07:00
builtin.h implement status is-breakpoint 2017-06-20 17:18:59 -07:00
color.cpp fix lint errors that have crept in 2017-05-06 22:08:07 -07:00
color.h implement our own assert() function 2017-02-14 18:48:27 -08:00
common.cpp Rename __assert to __fish_assert 2017-06-17 22:41:24 -07:00
common.h fixes for previous commit 2017-06-18 16:42:26 -07:00
complete.cpp fix bug in ~ completion 2017-05-27 16:29:24 -07:00
complete.h implement our own assert() function 2017-02-14 18:48:27 -08:00
env_universal_common.cpp make some compilers happy 2017-05-11 14:27:40 -07:00
env_universal_common.h implement our own assert() function 2017-02-14 18:48:27 -08:00
env.cpp split builtin bind into its own module 2017-06-16 21:01:56 -07:00
env.h fix setting up and using the terminfo data 2017-03-08 20:54:37 -08:00
event.cpp implement status is-breakpoint 2017-06-20 17:18:59 -07:00
event.h style cleanups 2017-05-01 22:05:35 -07:00
exec.cpp implement status is-breakpoint 2017-06-20 17:18:59 -07:00
exec.h implement our own assert() function 2017-02-14 18:48:27 -08:00
expand.cpp lint: replace getpwname() with getpwnam_r() 2017-05-09 22:23:32 -07:00
expand.h low level tests should not depend on /tmp 2017-04-08 21:13:34 -07:00
fallback.cpp fix lint errors that have crept in 2017-05-06 22:08:07 -07:00
fallback.h lint: replace getpwuid() with getpwuid_r() 2017-05-10 21:08:36 -07:00
fish_indent.cpp remove dead code 2017-06-16 21:01:56 -07:00
fish_key_reader.cpp fixes for previous commit 2017-06-18 16:42:26 -07:00
fish_tests.cpp implement status is-breakpoint 2017-06-20 17:18:59 -07:00
fish_version.cpp restyle fish modules to match project style 2016-04-30 19:52:13 -07:00
fish_version.h restyle fish modules to match project style 2016-04-30 19:52:13 -07:00
fish.cpp implement status is-breakpoint 2017-06-20 17:18:59 -07:00
function.cpp more sanity involving fatal errors 2017-02-14 21:09:15 -08:00
function.h implement means to learn about a functions source 2017-01-20 21:48:41 -08:00
highlight.cpp style cleanups 2017-05-01 22:05:35 -07:00
highlight.h implement our own assert() function 2017-02-14 18:48:27 -08:00
history.cpp improve bash history importing 2017-05-20 21:03:31 -07:00
history.h fix lint warning due to silly naming inconsitency 2017-05-09 21:01:27 -07:00
input_common.cpp lint cleanups 2017-02-11 21:30:38 -08:00
input_common.h implement our own assert() function 2017-02-14 18:48:27 -08:00
input.cpp Make "trying to match mapping" debug priority 4 2017-04-01 10:43:01 +02:00
input.h lint cleanup 2017-06-16 21:01:56 -07:00
intern.cpp implement our own assert() function 2017-02-14 18:48:27 -08:00
intern.h restyle intern module to match project style 2016-05-01 20:28:46 -07:00
io.cpp style cleanups 2017-05-01 22:05:35 -07:00
io.h implement our own assert() function 2017-02-14 18:48:27 -08:00
iothread.cpp fix echo -h 2017-06-18 22:10:19 -07:00
iothread.h lint cleanups 2017-02-11 21:30:38 -08:00
kill.cpp fix random lint issues 2016-05-29 22:24:29 -07:00
kill.h restyle kill module to match project style 2016-05-01 22:18:59 -07:00
lru.h Initialize the key in lru_node_t to NULL 2017-05-17 21:05:32 -07:00
output.cpp fix echo -h 2017-06-18 22:10:19 -07:00
output.h implement our own assert() function 2017-02-14 18:48:27 -08:00
pager.cpp remove some lint from pager.cpp 2017-02-15 15:21:35 -08:00
pager.h implement our own assert() function 2017-02-14 18:48:27 -08:00
parse_constants.h Error message prefix: Prefix the message, not the context 2017-04-11 20:00:29 -07:00
parse_execution.cpp fix echo -h 2017-06-18 22:10:19 -07:00
parse_execution.h Eliminate moved_ref 2017-01-26 15:43:46 -08:00
parse_productions.cpp fix echo -h 2017-06-18 22:10:19 -07:00
parse_productions.h style cleanups 2017-05-01 22:05:35 -07:00
parse_tree.cpp fix issues with builtin_function() 2017-06-18 12:55:14 -07:00
parse_tree.h implement our own assert() function 2017-02-14 18:48:27 -08:00
parse_util.cpp fix echo -h 2017-06-18 22:10:19 -07:00
parse_util.h fix echo -h 2017-06-18 22:10:19 -07:00
parser_keywords.cpp cleanup env code and contains() 2017-04-05 17:09:12 -07:00
parser_keywords.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
parser.cpp implement status is-breakpoint 2017-06-20 17:18:59 -07:00
parser.h fix issues with builtin_function() 2017-06-18 12:55:14 -07:00
path.cpp work around Haiku stdio bug 2017-06-04 21:01:26 -07:00
path.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
postfork.cpp style cleanups 2017-05-01 22:05:35 -07:00
postfork.h more IWYU fixes 2017-02-12 20:36:37 -08:00
print_help.cpp lint: "collapsible if statements" warnings 2016-10-22 19:09:40 -07:00
print_help.h restyle proc module to match project style 2016-05-02 22:07:58 -07:00
proc.cpp implement status is-breakpoint 2017-06-20 17:18:59 -07:00
proc.h implement status is-breakpoint 2017-06-20 17:18:59 -07:00
reader.cpp set COLUMNS and LINES earlier 2017-06-18 15:38:52 -07:00
reader.h Capture read command contents without displaying it via a silent flag. 2017-04-11 19:06:48 -07:00
sanity.cpp improve sanity check code 2017-01-24 15:24:13 -08:00
sanity.h improve sanity check code 2017-01-24 15:24:13 -08:00
screen.cpp style cleanups 2017-05-01 22:05:35 -07:00
screen.h fix lint errors that have crept in 2017-05-06 22:08:07 -07:00
signal.cpp fix how SIGHUP is handled when ignored 2017-05-03 22:16:41 -07:00
signal.h ensure no signals are blocked when started 2017-05-02 21:02:42 -07:00
tokenizer.cpp implement our own assert() function 2017-02-14 18:48:27 -08:00
tokenizer.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
utf8.cpp implement our own assert() function 2017-02-14 18:48:27 -08:00
utf8.h implement our own assert() function 2017-02-14 18:48:27 -08:00
util.cpp Fix the build on FreeBSD with Clang 2017-06-17 22:51:25 -07:00
util.h restyle remaining modules to match project style 2016-05-03 16:09:45 -07:00
wcstringutil.cpp fix some style bogosities that crept in 2016-05-27 14:44:30 -07:00
wcstringutil.h Be a bit more consistent and proper. 2016-06-05 21:32:57 -07:00
wgetopt.cpp refactor wgetopt.cpp to reduce complexity 2017-06-17 17:09:01 -07:00
wgetopt.h refactor wgetopt.cpp to reduce complexity 2017-06-17 17:09:01 -07:00
wildcard.cpp two more /tmp references that aren't necessary 2017-04-08 21:47:05 -07:00
wildcard.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
wutil.cpp make wreaddir() handle broken struct dirent 2017-05-17 22:35:28 -07:00
wutil.h lint: replace readdir() with readdir_r() 2017-05-09 21:02:05 -07:00