Files
fish-shell/tests/checks/not.fish
Fabian Boehm 6627d403d3 tests: Override __fish_print_help
This effectively disables "--help", replacing it with just a stand-in
string.

The upshot is that it makes the test suite immune to whether or not it
can find the documentation - until now it needed to *not* find it,
which is weird.

(also it saves some useless lines)

Fixes #11270
2025-03-13 18:13:10 +01:00

20 lines
269 B
Fish

#RUN: %fish %s
not true
echo $status
# CHECK: 1
# Two "not" prefixes on a single job cancel each other out.
not not sh -c 'exit 34'
echo $status
# CHECK: 34
! -h
# CHECKERR: Documentation for !
function !
echo overridden! $argv
end
! -h
# CHECK: overridden! -h