2017-04-25 04:05:51 +00:00
|
|
|
# string match -r "[" "a[sd"
|
|
|
|
string match: Regular expression compile error: missing terminating ] for character class
|
|
|
|
string match: [
|
|
|
|
string match: ^
|
|
|
|
|
|
|
|
# string invalidarg
|
|
|
|
string: Unknown subcommand 'invalidarg'
|
|
|
|
Standard input (line 167):
|
|
|
|
string invalidarg; and echo "unexpected exit 0" >&2
|
|
|
|
^
|
|
|
|
|
|
|
|
# string repeat -n-1 "foo"
|
2017-03-07 14:39:21 +00:00
|
|
|
string repeat: Invalid count value '-1'
|
2017-04-25 04:05:51 +00:00
|
|
|
|
|
|
|
# string repeat -m-1 "foo"
|
2017-03-07 14:39:21 +00:00
|
|
|
string repeat: Invalid max value '-1'
|
2017-04-25 04:05:51 +00:00
|
|
|
|
|
|
|
# string repeat -n notanumber "foo"
|
2017-03-07 14:39:21 +00:00
|
|
|
string repeat: Argument 'notanumber' is not a number
|
2017-04-25 04:05:51 +00:00
|
|
|
|
|
|
|
# string repeat -m notanumber "foo"
|
2017-03-07 14:39:21 +00:00
|
|
|
string repeat: Argument 'notanumber' is not a number
|
2017-04-25 04:05:51 +00:00
|
|
|
|
|
|
|
# echo "stdin" | string repeat -n1 "and arg"
|
2017-03-07 14:39:21 +00:00
|
|
|
string repeat: Too many arguments
|
2017-04-25 04:05:51 +00:00
|
|
|
|
|
|
|
# string repeat -n
|
2017-03-07 14:39:21 +00:00
|
|
|
string repeat: Expected argument
|
2017-04-25 04:05:51 +00:00
|
|
|
|
|
|
|
# string repeat -l fakearg 2>&1
|
2017-03-07 14:39:21 +00:00
|
|
|
string repeat: Unknown option '-l'
|
2017-04-25 04:05:51 +00:00
|
|
|
Standard input (line 268):
|
|
|
|
string repeat -l fakearg
|
|
|
|
^
|