From bfeebca75a8f5ce8825d1a3faf44d2efc6e5a2a4 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Mon, 27 Jun 2022 17:45:20 +0200 Subject: [PATCH] tests/argparse: Use set -l This skips history, which takes a lot of time here! --- tests/checks/argparse.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/checks/argparse.fish b/tests/checks/argparse.fish index 5545f00d9..7b5745792 100644 --- a/tests/checks/argparse.fish +++ b/tests/checks/argparse.fish @@ -285,7 +285,7 @@ and echo unxpected argparse return status >&2 # CHECKERR: argparse: Value 'a1' for flag 'm' is not an integer # Check the exit status from argparse validation -argparse 'm#max!set | grep "^_flag_"; function x; return 57; end; x' -- argle --max=83 bargle 2>&1 +argparse 'm#max!set -l | grep "^_flag_"; function x; return 57; end; x' -- argle --max=83 bargle 2>&1 set -l saved_status $status test $saved_status -eq 57 and echo expected argparse return status $saved_status