mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
1e858eae35
This demonstrates that we only write control sequences when interactive.
24 lines
520 B
Fish
24 lines
520 B
Fish
# RUN: %fish %s
|
|
#
|
|
# 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
|
|
# CHECKERR: type: --nonexistent-option-so-we-get-a-backtrace: unknown option
|
|
|
|
function line-number
|
|
status line-number
|
|
end
|
|
|
|
line-number
|
|
# CHECK: 20
|