Skip to content

trash: New package#6454

Merged
lazka merged 1 commit into
msys2:masterfrom
lhmouse:msys2-trash
Jul 24, 2026
Merged

trash: New package#6454
lazka merged 1 commit into
msys2:masterfrom
lhmouse:msys2-trash

Conversation

@lhmouse

@lhmouse lhmouse commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

This provides the command trash which moves its arguments to the Recycle Bin of the current user.

The idea is from the same command on Ubuntu: https://manpages.ubuntu.com/manpages/bionic/man1/trash.1.html
(It works without a desktop environment too.)

Source code is only one C file: https://github.com/lhmouse/msys2-trash/blob/v1.1/trash.c

Usage: trash [OPTIONS]... [--] PATHS...

Moves PATHS into the Recycle Bin of the current user.

Options:
  -d, --directory       (ignored)
  -f, --force           ignore nonexistent paths
  -h, --help            show help message then exit
  -i, --interactive     prompt before removing every path
  -r, -R, --recursive   (ignored)
  -v, --verbose         print status
  -V, --version         show version information then exit

Copilot AI review requested due to automatic review settings July 20, 2026 03:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new MSYS2 package trash, providing a CLI that moves given paths to the current user’s Recycle Bin (similar to Ubuntu’s trash utility).

Changes:

  • Introduces a new trash/PKGBUILD to build and package the upstream msys2-trash C implementation.
  • Packages the resulting executable into /usr/bin and installs the upstream license file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread trash/PKGBUILD Outdated
Comment thread trash/PKGBUILD Outdated
@lhmouse
lhmouse force-pushed the msys2-trash branch 2 times, most recently from 61b2f42 to e494fe3 Compare July 20, 2026 03:25
@lhmouse
lhmouse requested a review from Copilot July 20, 2026 03:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread trash/PKGBUILD Outdated
Comment thread trash/PKGBUILD Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@striezel striezel added the new-package Pull request which adds new package(s) label Jul 20, 2026
@lazka
lazka merged commit 0f61427 into msys2:master Jul 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-package Pull request which adds new package(s)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants