mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-19 14:51:13 -03:00
tests: consolidate __fish_print_help overrides
This commit is contained in:
@@ -429,18 +429,18 @@ for foo in 1 2 3
|
||||
end
|
||||
|
||||
# Check that these error correctly.
|
||||
# Simplify __fish_print_help, as it's noisy.
|
||||
function __fish_print_help
|
||||
echo $argv[2..]
|
||||
end
|
||||
$dyn_break
|
||||
eval break
|
||||
#CHECKERR: break: Not inside of loop
|
||||
#CHECKERR: break: Not inside of loop
|
||||
#CHECKERR: Error-message: break: Not inside of loop
|
||||
#CHECKERR: Documentation for break
|
||||
#CHECKERR: Error-message: break: Not inside of loop
|
||||
#CHECKERR: Documentation for break
|
||||
$dyn_continue
|
||||
eval continue
|
||||
#CHECKERR: continue: Not inside of loop
|
||||
#CHECKERR: continue: Not inside of loop
|
||||
#CHECKERR: Error-message: continue: Not inside of loop
|
||||
#CHECKERR: Documentation for continue
|
||||
#CHECKERR: Error-message: continue: Not inside of loop
|
||||
#CHECKERR: Documentation for continue
|
||||
|
||||
# Test implicit cd. This should do nothing.
|
||||
./
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
function __fish_print_help
|
||||
echo Documentation for $argv >&2
|
||||
if set -q argv[2]
|
||||
echo Error-message: $argv[2] >&2
|
||||
end
|
||||
echo Documentation for $argv[1] >&2
|
||||
return 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user