bugGNU Core Utilities - Bugs: bug #5971, RFE: a "trashcan command"

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #5971: RFE: a "trashcan command"

Submitted by:  Richard Neill <richardneill>
Submitted on:  Tue 14 Oct 2003 06:48:43 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 26 Aug 2006 12:28:54 PM UTC, comment #3:

Agreed - it's no longer required now that coreutils bug 5477 has been fixed.

That said, might I suggest appending something like the following to the man page of rm, so that the hint is more widely available:

--
Unthinking use of rm is dangerous, (especially on systems where it isn't aliased to "rm -i", or without current backups).
A trashCaN command, cn, may be implemented as a bash alias:
alias cn="mv --backup=numbered -- ~/your-trash-directory"

[In recent KDE/GNOME, the trash directory is located in
~/.local/share/Trash/files/]
--

Richard Neill <richardneill>
Sat 26 Aug 2006 10:56:53 AM UTC, comment #2:

Thanks for the offer, but I don't see the need for a new program.
You can do most of what you want by aliasing 'cn' to
mv --backup=numbered /.../your-trash-directory.

Jim Meyering <meyering>
Project Administrator
Thu 24 Nov 2005 06:29:42 AM UTC, comment #1:

<a href='http://wvvw.dynu.net/door/bbw-pic-thumbnail.html'> http://wvvw.dynu.net/door/bbw-pic-thumbnail.html - bbw pic thumbnail </a> http://wvvw.dynu.net/door/bbw-pic-thumbnail.html
<a href='http://pivasik.dynu.net/vatnik/ertotica-shemales-nation-free.html'> http://pivasik.dynu.net/vatnik/ertotica-shemales-nation-free.html - ertotica shemales nation free </a> http://pivasik.dynu.net/vatnik/ertotica-shemales-nation-free.html
<a href='http://mamba.dynu.net/puzan/gallery-free-mature.html'> http://mamba.dynu.net/puzan/gallery-free-mature.html - gallery free mature </a> http://mamba.dynu.net/puzan/gallery-free-mature.html
<a href='http://pivasik.dynu.net/door/fat-girl-pic.html'> http://pivasik.dynu.net/door/fat-girl-pic.html - fat girl pic </a> http://pivasik.dynu.net/door/fat-girl-pic.html
<a href='http://wvvw.dynu.net/masterzone/japanese-sex-groups.html'> http://wvvw.dynu.net/masterzone/japanese-sex-groups.html - japanese sex groups </a> http://wvvw.dynu.net/masterzone/japanese-sex-groups.html
<a href='http://wvvw.dynu.net/masterzone/asian-nude-model.html'> http://wvvw.dynu.net/masterzone/asian-nude-model.html - asian nude model </a> http://wvvw.dynu.net/masterzone/asian-nude-model.html
<a href='http://mamba.dynu.net/green/free-teen-thumbnail-cumshots.html'> http://mamba.dynu.net/green/free-teen-thumbnail-cumshots.html - free teen thumbnail cumshots </a> http://mamba.dynu.net/green/free-teen-thumbnail-cumshots.html
<a href='http://mamba.dynu.net/green/free-teen-cumshot-galleries.html'> http://mamba.dynu.net/green/free-teen-cumshot-galleries.html - free teen cumshot galleries </a> http://mamba.dynu.net/green/free-teen-cumshot-galleries.html
<a href='http://wvvw.dynu.net/kozel/big-huge-bouncing-boobs.html'> http://wvvw.dynu.net/kozel/big-huge-bouncing-boobs.html - big huge bouncing boobs </a> http://wvvw.dynu.net/kozel/big-huge-bouncing-boobs.html
<a href='http://mamba.dynu.net/green/oral-sex-pictures.html'> http://mamba.dynu.net/green/oral-sex-pictures.html - oral sex pictures </a> http://mamba.dynu.net/green/oral-sex-pictures.html
<a href='http://mamba.dynu.net/puzan/tits-mature-sex.html'> http://mamba.dynu.net/puzan/tits-mature-sex.html - tits mature sex </a> http://mamba.dynu.net/puzan/tits-mature-sex.html
<a href='http://pivasik.dynu.net/green/vaginal-cumshots-free-mpegs.html'> http://pivasik.dynu.net/green/vaginal-cumshots-free-mpegs.html - vaginal cumshots free mpegs </a> http://pivasik.dynu.net/green/vaginal-cumshots-free-mpegs.html
<a href='http://pivasik.dynu.net/vatnik/transsexual-links.html'> http://pivasik.dynu.net/vatnik/transsexual-links.html - transsexual links </a> http://pivasik.dynu.net/vatnik/transsexual-links.html
<a href='http://wvvw.dynu.net/masterzone/big-tited-asian-woman.html'> http://wvvw.dynu.net/masterzone/big-tited-asian-woman.html - big tited asian woman </a> http://wvvw.dynu.net/masterzone/big-tited-asian-woman.html
<a href='http://pivasik.dynu.net/puzan/mature-hispanic-women.html'> http://pivasik.dynu.net/puzan/mature-hispanic-women.html - mature hispanic women </a> http://pivasik.dynu.net/puzan/mature-hispanic-women.html
<a href='http://wvvw.dynu.net/masterzone/sexy-japanese-schoolgirls.html'> http://wvvw.dynu.net/masterzone/sexy-japanese-schoolgirls.html - sexy japanese schoolgirls </a> http://wvvw.dynu.net/masterzone/sexy-japanese-schoolgirls.html
<a href='http://mamba.dynu.net/kozel/big-dick-and-tits-and-free-pictures.html'> http://mamba.dynu.net/kozel/big-dick-and-tits-and-free-pictures.html - big dick and tits and free pictures </a> http://mamba.dynu.net/kozel/big-dick-and-tits-and-free-pictures.html
<a href='http://wvvw.dynu.net/puzan/mature-women-oral-sex.html'> http://wvvw.dynu.net/puzan/mature-women-oral-sex.html - mature women oral sex </a> http://wvvw.dynu.net/puzan/mature-women-oral-sex.html
<a href='http://pivasik.dynu.net/puzan/free-mature-picture-porn-pussy.html'> http://pivasik.dynu.net/puzan/free-mature-picture-porn-pussy.html - free mature picture porn pussy </a> http://pivasik.dynu.net/puzan/free-mature-picture-porn-pussy.html
<a href='http://pivasik.dynu.net/kozel/big-tits-suck.html'> http://pivasik.dynu.net/kozel/big-tits-suck.html - big tits suck </a> http://pivasik.dynu.net/kozel/big-tits-suck.html
<a href='http://wvvw.dynu.net/door/free-fat-porn-video.html'> http://wvvw.dynu.net/door/free-fat-porn-video.html - free fat porn video </a> http://wvvw.dynu.net/door/free-fat-porn-video.html
<a href='http://wvvw.dynu.net/masterzone/hardcore-asian-women.html'> http://wvvw.dynu.net/masterzone/hardcore-asian-women.html - hardcore asian women </a> http://wvvw.dynu.net/masterzone/hardcore-asian-women.html
<a href='http://pivasik.dynu.net/vatnik/shemale-doms-pictures.html'> http://pivasik.dynu.net/vatnik/shemale-doms-pictures.html - shemale doms pictures </a> http://pivasik.dynu.net/vatnik/shemale-doms-pictures.html
<a href='http://mamba.dynu.net/masterzone/asian-and-petite-porn.html'> http://mamba.dynu.net/masterzone/asian-and-petite-porn.html - asian and petite porn </a> http://mamba.dynu.net/masterzone/asian-and-petite-porn.html
<a href='http://mamba.dynu.net//interracial-erotic-sex-story.html'> http://mamba.dynu.net//interracial-erotic-sex-story.html - interracial erotic sex story </a> http://mamba.dynu.net//interracial-erotic-sex-story.html
<a href='http://wvvw.dynu.net/green/all-free-pictures-of-cum-shots.html'> http://wvvw.dynu.net/green/all-free-pictures-of-cum-shots.html - all free pictures of cum shots </a> http://wvvw.dynu.net/green/all-free-pictures-of-cum-shots.html
<a href='http://wvvw.dynu.net/masterzone/free-thumbs-of-old-naked-asian-tarts.html'> http://wvvw.dynu.net/masterzone/free-thumbs-of-old-naked-asian-tarts.html - free thumbs of old naked asian tarts </a> http://wvvw.dynu.net/masterzone/free-thumbs-of-old-naked-asian-tarts.html
<a href='http://mamba.dynu.net/vatnik/transsexual-hormones.html'> http://mamba.dynu.net/vatnik/transsexual-hormones.html - transsexual hormones </a> http://mamba.dynu.net/vatnik/transsexual-hormones.html
<a href='http://pivasik.dynu.net/puzan/mature-vids.html'> http://pivasik.dynu.net/puzan/mature-vids.html - mature vids </a> http://pivasik.dynu.net/puzan/mature-vids.html
<a href='http://wvvw.dynu.net/masterzone/japanese-schoolgirls-mini.html'> http://wvvw.dynu.net/masterzone/japanese-schoolgirls-mini.html - japanese schoolgirls mini </a> http://wvvw.dynu.net/masterzone/japanese-schoolgirls-mini.html
<a href='http://pivasik.dynu.net/puzan/mature-porn-movies.html'> http://pivasik.dynu.net/puzan/mature-porn-movies.html - mature porn movies </a> http://pivasik.dynu.net/puzan/mature-porn-movies.html
WBR ATZXKFjmsapqPBflE

Anonymous
Tue 14 Oct 2003 06:48:43 PM UTC, original submission:

I propose adding a 'cn' program to the trio of rm,mv,cp which would only temporarily delete the file (i.e. move to trash).

This would be very useful, simple to do, and reduce the chance of accidents, as even experienced users make slips, even with rm aliased to rm -i. It seems the logical solution, as it won't annoy those who like the "power of rm", and it will still be a very small file.

I have a (GPL) example which I wrote here.
http://www.richard.neill.hemscott.net/cn
It does almost everything it should
(except for this bug:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=5477&group_id=2613
). But maybe it should be re-written in C.

Richard Neill <richardneill>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 26 Aug 2006 10:56:53 AM UTCmeyeringStatusNone=>Wont Fix
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1