From 9a10f244693f4d0c17f4e758e64dbdc014299c9f Mon Sep 17 00:00:00 2001
From: Ben Sima <ben@bsima.me>
Date: Tue, 21 Dec 2021 21:12:41 -0500
Subject: Enable shellcheck lint and fix its warnings

---
 Biz/Ide/ftags.sh | 4 ++--
 Biz/Ide/hoog.sh  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'Biz/Ide')

diff --git a/Biz/Ide/ftags.sh b/Biz/Ide/ftags.sh
index 4b8396b..77646da 100755
--- a/Biz/Ide/ftags.sh
+++ b/Biz/Ide/ftags.sh
@@ -5,7 +5,7 @@
   set -euo pipefail
   tags=$BIZ_ROOT/tags
   tag_search=$(
-    awk 'BEGIN { FS="\t" } !/^!/ {print toupper($4)"\t"$1"\t"$2"\t"$3}' $tags \
+    awk 'BEGIN { FS="\t" } !/^!/ {print toupper($4)"\t"$1"\t"$2"\t"$3}' "$tags" \
       | cut -c1-80 \
       | fzf \
         --nth=1,2 \
@@ -13,7 +13,7 @@
         --preview "rg --ignore-case --pretty --context 2 --word-regexp {+2}"
   )
   ${EDITOR:-vim} \
-    $(cut -f3 <<< "$tag_search") \
+    "$(cut -f3 <<< "$tag_search")" \
     -c "set nocst" \
     -c "silent tag $(cut -f2 <<< "$tag_search")"
 ##
diff --git a/Biz/Ide/hoog.sh b/Biz/Ide/hoog.sh
index 5379e54..3945f90 100755
--- a/Biz/Ide/hoog.sh
+++ b/Biz/Ide/hoog.sh
@@ -4,7 +4,7 @@
 #
   set -euo pipefail
   HOOG="hoogle search --count=200"
-  export FZF_DEFAULT_COMMAND="$HOOG $@"
+  export FZF_DEFAULT_COMMAND="$HOOG $*"
   fzf \
     --preview-window=down \
     --preview "hoogle search --link --info {+2}" \
-- 
cgit v1.2.3