aboutsummaryrefslogtreecommitdiff
path: root/mgrep
diff options
context:
space:
mode:
Diffstat (limited to 'mgrep')
-rwxr-xr-xmgrep6
1 files changed, 3 insertions, 3 deletions
diff --git a/mgrep b/mgrep
index a0f9419..c4f0312 100755
--- a/mgrep
+++ b/mgrep
@@ -23,7 +23,7 @@ self=mgrep
#
# If you want, you can specify different paths by exporting MGREP_CONFIG.
#
-conf=${MGREP_CONFIG:-$HOME/.${self}rc}
+conf=${MGREP_CONFIG:-"$HOME"/."$self"rc}
if [[ -r $conf ]] ; then
source -- "$conf"
fi
@@ -35,11 +35,11 @@ context=${context:-3}
# for filenames (not full paths) to be matched by find(1); this file will be
# silently ignored if nonexistent; bash(1) should raise an error if it exists
# but isn't readable; defaults to "$HOME"/.local/etc/mgrep/exclude.
-exclude=${exclude:-$HOME/.$self/exclude}
+exclude=${exclude:-"$HOME"/."$self"/exclude}
# The path through which find(1) will run to find files for grep(1) to search.
# Defaults to your $HOME.
-path=${path:-$HOME}
+path=${path:-"$HOME"}
# Start lists of arguments for find(1) and grep(1)
declare -a find_args grep_args