Skip to content

Bug: "rip -u [filename]" restores the most recently deleted file instead of the specified file #112

@AbyssSkb

Description

@AbyssSkb

Describe the bug

According to the documentation, rip -u [filename] should restore the specified file from trash. However, it always restores the most recently deleted file regardless of the filename I input.

To Reproduce

Steps to reproduce the behavior:

  1. Delete multiple files: rip file1.txt, rip file2.txt
  2. Try to restore the first file: rip -u $(rip graveyard -s)/file1.txt
  3. Observe that file2.txt (the most recent one) gets restored instead

Expected behavior

The command should restore exactly the file specified in the command (e.g. file1.txt in the example above).

Environment

  • OS: macOS Sequoia 15.4.1 arm64
  • rip version: 0.9.3
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions