Skip to content

Commit

Permalink
Shell/Tests: Replace 'type f -f' with 'type -f f'
Browse files Browse the repository at this point in the history
The order of arguments seemed be confusing ArgsParser.
Fixes SerenityOS#6467.
  • Loading branch information
alimpfard authored and linusg committed Apr 19, 2021
1 parent 061aaa3 commit 5591484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Shell/Tests/builtin-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5591484

Please sign in to comment.