aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmgrep6
1 files changed, 1 insertions, 5 deletions
diff --git a/mgrep b/mgrep
index 13275b3..8469408 100755
--- a/mgrep
+++ b/mgrep
@@ -94,13 +94,9 @@ if [[ -e $exclude ]] ; then
done < "$exclude"
fi
-# Try to change into the path for find(1). This is just to prevent long
-# prefixes in the output of `grep -h`.
-cd -- "$path" || exit
-
# Run the find(1) command with its determined arguments, with an -exec option
# calling grep(1) with its determined arguments.
-find ./* \
+find "$path" \
-type f \
"${find_args[@]}" \
-exec \