shelljs / shelljs/shelljs

feat: grep -R/-r flag

Open
#998 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bash compat feature low priority
Dominant language
JavaScript
Stars
14.4k
Forks
756
PR merge metrics
No merged PRs in 30d

Description

This is a feature request to add the -r or -R flag to grep(). From the man page:

-r, --recursive
       Read  all  files under each directory, recursively, following symbolic links only if they are on the command line.  Note that if no file operand is given, grep searches the working directory.  This is equivalent
       to the -d recurse option.

-R, --dereference-recursive
       Read all files under each directory, recursively.  Follow all symbolic links, unlike -r.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the grep() entry point but no implementation file or test. Start by locating grep() and its option parsing, then inspect existing grep behavior and tests. Done means -r and -R are accepted and follow the recursive and symbolic-link semantics described in the request.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.