Re: Deleting Local Files to trash?

Thomas Dickey <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <ZPUbb9PnvYP6HbH/@prl-debianold-64.jexium-island.net>
On Sun, Sep 03, 2023 at 05:09:17AM -0700, Chime Hart wrote:
> Thank you Tomas. That .h2 item was not in my lynx.cfg, so I pasted in your
> instructions. But after that, can I define a command for deleting files?
> Exactly what belongs in that file, so I can act on an alias? As I mentioned
> last evening, del is aliased to
> /usr/bin/trash-put

Lynx would run "rm" directly (not in a shell, which would have an alias).
But you can make it run a shell script or "any" program such as trash-put.

That's assuming that "trash-put" removes the files given as arguments,
like "rm".  If it needs options, then a short shell-script may make
"trash-put" act like "rm".

(if it's a GUI that can't act like "rm", I don't know...)

> Thanks so much in advance
> Chime
> 

-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmT1G2sACgkQzCr0RyFn
vgOPowv/dBx9JOSwVqLzV4g3DgHh5GursrCxPNrj5oWeyasOkbZ7SQ63wKywD6aw
lK/JqhkAruPErF0hKGwYKhxMf5LD3YolwuR14/z36z3/21grQa000XLgtdG982qI
5KVYT9C20L3EPULq2HFfTCveLva+v6Oq8r9+et2r/d8lYV6RqHbDOp9FcD+3zOtN
RlPs1/dxY1Kwu2NnP2mIeojvW0njjjWLe44nzremJuqHRLeCQVjjHToZATcI5zHW
jYFggcgwoIzVbDOoty0wFI/OTvkJlPNzU4DHm+jQdbXQTcI4l2BB2I72xgRzRkrR
iiBj8b3FnoYv3WZDudoJ/xgHKg3XFmZVi9UC0d0p38j8ojqqs9gqtntfvQ8zVlf7
TtCbjrqKzJsUrRNRzADM2osndleHIKqI7YeKU3rpJX4L3UgCuQnnh+G39zn9ws7/
M8c2DLNhpI2IGarRsaq0BA0lKI8QAxKQqRMil7vQnfXSnZaNaouoQaJ3THzriGAe
TvFDcMpk
=JErW
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.