From 01c2f9bb94c9c9b74e09ec302aa4a9cc2b7625d8 Mon Sep 17 00:00:00 2001 From: "Ethan P." Date: Sat, 24 Aug 2024 13:45:36 -0700 Subject: [PATCH] test: Ignore flags passed to shim `less` This fixes #126. --- test/shimexec/less | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/shimexec/less b/test/shimexec/less index ab7494a..095baa5 100755 --- a/test/shimexec/less +++ b/test/shimexec/less @@ -12,4 +12,10 @@ EOF exit 0 fi -cat "$1" +FILES=() +while [[ $# -gt 0 ]]; do + -*) : ;; + *) FILES+=("$1") +done + +cat "${FILES[@]}"