hpc / hpc/mpifileutils

drm: behavior relative to "rm -rf"

Open
#580 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
200
Forks
85
Avg merge
3d 21h
Merged PRs (30d)
2

Description

I will note that the docs for drm say "behaves like rm -rf", but that doesn't seem quite correct . . . For plain old rm, the docs say the following:

"-f: Ignore nonexistent files and arguments, never prompt"

However, I am seeing that drm errors out on nonexistent arguments, i.e., if I type:

drm file1 file2,

and file1 doesn't exist, then file2 is not removed, which is . . . painful. Is this intentional, or ??? Thx

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

Read the drm documentation's “behaves like rm -rf” claim and inspect the drm command entry point. Reproduce drm file1 file2 with file1 absent, then verify the intended handling of nonexistent arguments and document or test the resolved behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.