2024-04-12 18:19:32 +08:00
|
|
|
# RUN: %fish %s
|
2019-11-27 01:09:33 +08:00
|
|
|
#
|
|
|
|
# These lines left around because we need the line numbers.
|
|
|
|
# This file in general requires careful editing in the middle, I recommend appending.
|
|
|
|
function t --on-event linenumber
|
|
|
|
status line-number
|
|
|
|
status line-number
|
|
|
|
status line-number
|
|
|
|
end
|
|
|
|
|
|
|
|
emit linenumber
|
|
|
|
# CHECK: 6
|
|
|
|
# CHECK: 7
|
|
|
|
# CHECK: 8
|
|
|
|
|
|
|
|
type --nonexistent-option-so-we-get-a-backtrace
|
2021-11-04 13:52:17 +08:00
|
|
|
# CHECKERR: type: --nonexistent-option-so-we-get-a-backtrace: unknown option
|
2019-11-27 01:09:33 +08:00
|
|
|
|
|
|
|
function line-number
|
|
|
|
status line-number
|
|
|
|
end
|
|
|
|
|
|
|
|
line-number
|
2020-06-18 02:05:48 +08:00
|
|
|
# CHECK: 20
|