Skip to content

Commit

Permalink
plugins/base: lsgrep is SC2010
Browse files Browse the repository at this point in the history
The `lsgrep()` function is *itself* explicitly forbidden by `shellcheck` rule SC2010.

Alsö, s/`$*`/`$@`
  • Loading branch information
gaelicWizard committed Sep 9, 2021
1 parent e201781 commit 33d4a07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/available/base.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ function lsgrep ()
{
about 'search through directory contents with grep'
group 'base'
ls | grep "$*"
# shellcheck disable=SC2010
ls | grep "$@"
}

function quiet ()
Expand Down

0 comments on commit 33d4a07

Please sign in to comment.