mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
bd299e96b2
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
34 lines
869 B
Text
34 lines
869 B
Text
# string match -r "[" "a[sd"
|
|
string match: Regular expression compile error: missing terminating ] for character class
|
|
string match: [
|
|
string match: ^
|
|
|
|
# string invalidarg
|
|
string: Subcommand 'invalidarg' is not valid
|
|
Standard input (line 183):
|
|
string invalidarg; and echo "unexpected exit 0" >&2
|
|
^
|
|
|
|
# string repeat -n-1 "foo"
|
|
string repeat: Invalid count value '-1'
|
|
|
|
# string repeat -m-1 "foo"
|
|
string repeat: Invalid max value '-1'
|
|
|
|
# string repeat -n notanumber "foo"
|
|
string repeat: Argument 'notanumber' is not a number
|
|
|
|
# string repeat -m notanumber "foo"
|
|
string repeat: Argument 'notanumber' is not a number
|
|
|
|
# echo "stdin" | string repeat -n1 "and arg"
|
|
string repeat: Too many arguments
|
|
|
|
# string repeat -n
|
|
string repeat: Expected argument
|
|
|
|
# string repeat -l fakearg 2>&1
|
|
string repeat: Unknown option '-l'
|
|
Standard input (line 284):
|
|
string repeat -l fakearg
|
|
^
|