File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
tests/02-core/04-misc/03-set-array-from-vals Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -439,6 +439,22 @@ Length: 2
439
439
440
440
- - - - - - - - - -
441
441
442
+ ## ` --quiet ` and one invalid value
443
+
444
+ ### stdout
445
+ ```
446
+ Length: 4
447
+
448
+ 0: <never set>
449
+ 1: x
450
+ 2: y
451
+ 3: z
452
+ ```
453
+
454
+ ### exit: 1
455
+
456
+ - - - - - - - - - -
457
+
442
458
## unquoted $'\' ' (invalid)
443
459
444
460
### stdout
Original file line number Diff line number Diff line change @@ -113,6 +113,10 @@ call-and-log-as-test 'two return-surrounded values' \
113
113
call-and-log-as-test ' two values surrounded by a mix of all valid separators' \
114
114
call-safv var $' \n\r \t florp\r \t\n fleep\t\r\n '
115
115
116
+ # Invalid value, but with `--quiet`.
117
+ call-and-log-as-test ' `--quiet` and one invalid value' \
118
+ call-safv --quiet var ' boop&'
119
+
116
120
# Invalid calls because of unquoted special characters.
117
121
chars=$' \'\\ ";&|$?!*`#%^,~[]{}()<>'
118
122
for (( n = 0 ; n < ${# chars} ; n++ )) ; do
You can’t perform that action at this time.
0 commit comments