mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 02:31:18 -03:00
With a few exceptions, only one test is added for a given message, even when there are multiple ways to trigger the same message (e.g. different invalid option combinations, or triggered in shared functions such as `builtin_unknown_option`) Includes a few very minor fixes, such as missing a newline, or using the wrong var name. Closes #12603
20 lines
554 B
Fish
20 lines
554 B
Fish
#RUN: fish=%fish %fish %s
|
|
|
|
# See `tests/pexpects/fkr.py` for non-error tests
|
|
|
|
fish_key_reader --continuous=invalid
|
|
# CHECKERR: fish_key_reader: --continuous=invalid: option does not take an argument
|
|
|
|
fish_key_reader --invalid-opt
|
|
# CHECKERR: fish_key_reader: --invalid-opt: unknown option
|
|
|
|
fish_key_reader some-unexpected-args
|
|
# CHECKERR: Expected no arguments, got 1
|
|
|
|
echo | builtin fish_key_reader
|
|
# CHECKERR: Stdin must be attached to a tty.
|
|
|
|
set -l dir (dirname $fish)
|
|
echo | command $dir/fish_key_reader
|
|
# CHECKERR: Stdin must be attached to a tty.
|