shelljs / shelljs/shx

fails when passing arguments separately

Open
#203 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feat low priority
Dominant language
JavaScript
Stars
1.9k
Forks
51
Avg merge
3d 2h
Merged PRs (30d)
1

Description

when I run shx rm -f -r dir it fails with the error path is a directory
but when I run the exactly same command but putting arguments together it success shx rm -fr dir

the command works without shx rm -f -r dir

tested on linux

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

Start by reproducing shx rm -f -r dir and compare it with shx rm -fr dir on Linux, then inspect the shx command entry point and argument handling. Done means separate -f and -r arguments work like the equivalent native rm command without the path is a directory error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.