From 8d3e81a49f26210b8e20f55053f14a86feb425d4 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Thu, 23 Sep 2021 22:53:44 -0700 Subject: [PATCH] plugins/base: `lsgrep` is SC2010 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `lsgrep()` function is *itself* explicitly forbidden by `shellcheck` rule SC2010. Alsö, s/`$*`/`$@` --- plugins/available/base.plugin.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/available/base.plugin.bash b/plugins/available/base.plugin.bash index 2a23eb0c..a2bc98b6 100644 --- a/plugins/available/base.plugin.bash +++ b/plugins/available/base.plugin.bash @@ -96,11 +96,11 @@ function mkcd() { mkdir -p -- "$@" && cd -- "${!#}" || return } -function lsgrep () -{ +# shellcheck disable=SC2010 +function lsgrep() { about 'search through directory contents with grep' group 'base' - ls | grep "$*" + ls | grep "$@" } function quiet() {