2024-03-30 15:10:12 +00:00
|
|
|
#RUN: %fish -C 'set -g fish %fish' %s | %filter-ctrlseqs
|
2019-06-25 20:01:53 +00:00
|
|
|
begin
|
|
|
|
set -l dir $PWD/(dirname (status -f))
|
|
|
|
set -gx XDG_CONFIG_HOME $dir/broken-config/
|
|
|
|
set -gx HOME $dir/broken-config/
|
|
|
|
$fish -l -c 'echo but still going'
|
|
|
|
# CHECK: broken
|
|
|
|
# CHECK: but still going
|
|
|
|
# CHECKERR: fish: Unknown command: syntax-error
|
|
|
|
# CHECKERR: ~//fish/config.fish (line {{\d+}}):
|
|
|
|
# CHECKERR: syntax-error
|
2022-08-11 15:22:03 +00:00
|
|
|
# CHECKERR: ^~~~~~~~~~~^
|
2019-06-25 20:01:53 +00:00
|
|
|
# CHECKERR: from sourcing file ~//fish/config.fish
|
|
|
|
# CHECKERR: called during startup
|
|
|
|
|
|
|
|
$fish -c "echo normal command" -C "echo init"
|
|
|
|
# CHECK: broken
|
|
|
|
# CHECK: init
|
|
|
|
# CHECK: normal command
|
|
|
|
end
|
2023-08-02 19:24:57 +00:00
|
|
|
|
|
|
|
# should not crash or segfault in the presence of an invalid locale
|
|
|
|
LC_ALL=hello echo hello world
|
|
|
|
# CHECK: hello world
|