Code Monkey home page Code Monkey logo

trsh's People

Contributors

amithash avatar

Stargazers

 avatar

Watchers

 avatar  avatar

trsh's Issues

Infinite loop...

What steps will reproduce the problem?

[02:30 PM] root@yew :: /usr/bin $ ls -l python
lrwxrwxrwx 1 root root 7 Sep 29 12:03 python -> python3
[02:31 PM] root@yew :: /usr/bin $ rm python
Use of uninitialized value $success in numeric eq (==) at /usr/scripts/trsh 
line 855, <IN> line 11.
Use of uninitialized value $success in numeric eq (==) at /usr/scripts/trsh 
line 855, <IN> line 11.
Use of uninitialized value $success in numeric eq (==) at 
<repeats forever>

What version of the product are you using? On what operating system?

TRSH VERSION 3.15-2 on Arch linux.

Please provide any additional information below.

Haven't seen this happen before, and I use trsh constantly. Is there a logical 
reason why $success could be initialized?

Original issue reported on code.google.com by [email protected] on 19 Oct 2012 at 6:34

Integrating with OS X Trash folder

These are just some thoughts on using on OS X. I do not think it is
possible or recommended to use existing Trash folder.

I changed ".local/share/Trash" to "./Trash" as per OS X.

rm --list does not show existing trash (since trsh reads from its own repo).

Deleting a file caused an endless loop in line 805.
                $success = sysopen INFO, "$infodir/$infoname", 
O_RDWR|O_EXCL|O_CREAT;

I think this is because folders info and files does not exist. So i created
these from Terminal and touched the metadata file.

Now I am able to "rm" a file, and see result. However, of course, any file
deleted in Finder will not show up using rm.

Also, if I use the "Empty" button from Finder, then the metadata folders
and files I have placed in Trash will get erased.

Further thoughts:

1. Place metadata info in a separate location, so Empty does not remove it.
(should be configurable, so other Unices not affected).

2. Why does "rm" not display files in trash. Why from metadata only ?

3. In OSX, i don't think original dir structure is maintained. So if you
want to restore a file, you drag it where you want it to go. trsh remembers
where it came from, so that's why it uses metadata (i guess).

All in all, I think it's okay to continue to use a separate structure such
as ".local/share/Trash". If someone just wants to use existing Trash, then
rm can be aliased to a "mv" which is all that existing Finder delete does.

What steps will reproduce the problem?
 explained above

What version of the product are you using? On what operating system?
OS X 10.6.3. Snow Leopard. Bash shell.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 23 Apr 2010 at 5:25

Can't delete symlinks to directories

What steps will reproduce the problem?
1. ln -s <directory> <symlink>
2. trsh <symlink>

What is the expected output? What do you see instead?

It should work. Instead, I get:

trsh: cannot remove `/path/to/symlink': Is a directory

Original issue reported on code.google.com by [email protected] on 30 Jul 2011 at 10:14

trsh -l throws an error

What steps will reproduce the problem?
1. trsh -l

What is the expected output? What do you see instead?

It should list the files in the trash. Instead, I see:

$ trsh -l
Use of uninitialized value $_[0] in substitution (s///) at 
/usr/share/perl5/core_perl/File/Basename.pm line 341, <IN> line 103.
fileparse(): need a valid pathname at /usr/scripts/trsh line 776.

What version of the product are you using? On what operating system?

Latest git commit (July 4th, 2012).

Original issue reported on code.google.com by [email protected] on 10 Nov 2012 at 1:43

"trsh -e" should give a summary of what you're about to delete

What steps will reproduce the problem?
1. trsh -e

What is the expected output? What do you see instead?

I expected to see some kind of summary of what I'm about to delete Ideally, a 
list of the files ("trsh -l"), but I'd settle for "Delete 371.3 MB of files? 
(y/n)".

What version of the product are you using? On what operating system?

The latest, on Linux.

Original issue reported on code.google.com by [email protected] on 22 Nov 2011 at 6:26

Trsh install does not work on ubuntu 12.04

What steps will reproduce the problem?
1. Install trsh on Ubuntu 12.04, 
2. Restart shell,
3.

What is the expected output? What do you see instead?
rm must be aliased to /usr/bin/trsh.pl, but /etc/bash.bashrc is not touched.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by [email protected] on 4 Apr 2012 at 2:03

Can't delete files with a $ in the name.

What steps will reproduce the problem?
1. touch file\$name
2. trsh file\$name

What is the expected output? What do you see instead?

File should be deleted.

Instead, I see:

mv: cannot stat `<path>/file': No such file or directory
Recovering from failed delete

There is now an entry in the trash, AND a file still on the drive.

I'm a little afraid of emptying the trash with trsh -e. :)

What version of the product are you using? On what operating system?

TRSH VERSION 3.11-0
Ubuntu Maverick

Original issue reported on code.google.com by [email protected] on 26 Jul 2011 at 4:56

trsh thinks broken symlinks are write-protected files

What steps will reproduce the problem?
1. Make a broken symlink
2. Try to delete it

What is the expected output? What do you see instead?

It should be deleted.

What version of the product are you using? On what operating system?

The latest one on Linux.

Please provide any additional information below.

[07:49 PM] epi@fizz :: ~ $ ln -s nonexistant-file x
[07:50 PM] epi@fizz :: ~ $ rm x
trsh: delete write-protected regular file `/home/epi/x'? (y/n): No! It is a 
broken symlink!         
trsh: delete write-protected regular file `/home/epi/x'? (y/n): NO!
trsh: delete write-protected regular file `/home/epi/x'? (y/n): N
trsh: delete write-protected regular file `/home/epi/x'? (y/n): fgsfds^C    
[07:51 PM] epi@fizz :: ~ $ /bin/rm -rf x
[07:51 PM] epi@fizz :: ~ $        

Original issue reported on code.google.com by [email protected] on 22 Nov 2011 at 6:23

Mount parsing glitch that makes trsh unusable.

What steps will reproduce the problem?
1. trsh filename

What is the expected output? What do you see instead?

It should delete the file.

Instead, it says: 

Use of uninitialized value $mnt in -w at trsh.pl line 1007, <IN> line 17.

What version of the product are you using? On what operating system?

TRSH VERSION 3.11-0
Ubuntu Maverick

Please provide any additional information below.

A patch that fixes the bug is attached (a very crude one, but it works!)

Original issue reported on code.google.com by [email protected] on 26 Jul 2011 at 5:06

Attachments:

Line 1644, timezone results in error reporting

What steps will reproduce the problem?
1. Run rm --list

What is the expected output? What do you see instead?
Expect to just see listing of filenames
I get an error as:
Argument "57+05" isn't numeric in int at /Users/rahul/.trsh.pl line 1646,
<IN> line 10.


What version of the product are you using? On what operating system?
trsh.pl 3.11-0
Mac OS X Snow Leopard.

Please provide any additional information below.

 I've added a line to remove "+TZ" after the ttime assignment.

$ttime =~ s/\+.*//g;

After this line, its okay.

Original issue reported on code.google.com by [email protected] on 22 Apr 2010 at 2:34

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.