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:
- Delete multiple files:
rip file1.txt, rip file2.txt
- Try to restore the first file:
rip -u $(rip graveyard -s)/file1.txt
- 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
