Shell/Tests: Replace 'type f -f' with 'type -f f'

The order of arguments seemed be confusing ArgsParser.
Fixes #6467.
This commit is contained in:
Ali Mohammad Pur 2021-04-19 03:38:00 +04:30 committed by Linus Groh
parent 061aaa33e8
commit 55914841b7
Notes: sideshowbarker 2024-07-18 19:24:40 +09:00

View file

@ -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