fish-shell/tests/checks/not.fish

22 lines
372 B
Fish
Raw Normal View History

#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: fish: !: missing man page
# CHECKERR: Documentation may not be installed.
# CHECKERR: `help !` will show an online version
function !
echo overridden! $argv
end
! -h
# CHECK: overridden! -h