aboutsummaryrefslogtreecommitdiff
path: root/bsgrep
diff options
context:
space:
mode:
Diffstat (limited to 'bsgrep')
-rwxr-xr-xbsgrep4
1 files changed, 3 insertions, 1 deletions
diff --git a/bsgrep b/bsgrep
index ad89e29..0f33e16 100755
--- a/bsgrep
+++ b/bsgrep
@@ -92,6 +92,7 @@ if($self =~ /join/) {
}
if($opt{r}) {
+ @ARGV = (".") unless @ARGV;
for(@ARGV) {
if(-d $_) {
find({
@@ -248,7 +249,8 @@ that contain matches (same as B<grep>).
=item -r
Recursively read all files under each directory, following symlinks
-only if they're on the command line (same as B<grep>).
+only if they're on the command line. If no files or directories are
+given, reads the current directory. Same as B<grep>.
=item -v