diff options
author | B. Watson <urchlay@slackware.uk> | 2025-02-02 15:31:20 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2025-02-02 15:31:20 -0500 |
commit | 4608f3975eade7b9b516b8b6658cd08bf0b2c5cc (patch) | |
tree | 514c1a37523c8de425b8d29cce997acf050b830c | |
parent | 45ed00aef983ccdb77d2611e576cb177866f03d1 (diff) | |
download | misc-scripts-4608f3975eade7b9b516b8b6658cd08bf0b2c5cc.tar.gz |
bsgrep: make -r use . if no files on command line.
-rwxr-xr-x | bsgrep | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |