From 55914841b7712c7721eee497986a086fd109259f Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 19 Apr 2021 03:38:00 +0430 Subject: [PATCH] Shell/Tests: Replace 'type f -f' with 'type -f f' The order of arguments seemed be confusing ArgsParser. Fixes #6467. --- Userland/Shell/Tests/builtin-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Shell/Tests/builtin-test.sh b/Userland/Shell/Tests/builtin-test.sh index f42761bde2..6060ff3fa6 100644 --- a/Userland/Shell/Tests/builtin-test.sh +++ b/Userland/Shell/Tests/builtin-test.sh @@ -12,7 +12,7 @@ f() { ls } if not [ "$(type f)" = "f is a function f() { ls }" ] { fail "'type' on a function not working" } -if not [ "$(type f -f)" = "f is a function" ] { fail "'type' on a function not working with -f" } +if not [ "$(type -f f)" = "f is a function" ] { fail "'type' on a function not working with -f" } alias l=ls