mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-16 18:31:14 -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
21 lines
420 B
Fish
21 lines
420 B
Fish
#RUN: %fish %s
|
|
|
|
source /dev/null
|
|
echo $status
|
|
# CHECK: 0
|
|
|
|
source /
|
|
echo $status
|
|
# CHECKERR: error: Unable to read input file: Is a directory
|
|
# CHECKERR: source: Error while reading file '/'
|
|
# CHECK: 1
|
|
|
|
source unknown-file
|
|
# CHECKERR: source: Error encountered while sourcing file 'unknown-file':
|
|
# CHECKERR: source: {{.+}}
|
|
|
|
source <&-
|
|
# CHECKERR: source: stdin is closed
|
|
source - <&-
|
|
# CHECKERR: source: stdin is closed
|