Giter VIP home page Giter VIP logo

Comments (5)

andreafrancia avatar andreafrancia commented on August 23, 2024

It works for me. Could you be more specific? Which O.S., filesystem, are you using? Output of df, ls, etc?

from trash-cli.

tpope avatar tpope commented on August 23, 2024

Testing on Debian. I've only been able to reproduce the issue on FAT32 mounts. Here's an example on a just-formatted SD card.

$ df
Filesystem     1K-blocks      Used Available Use% Mounted on
...
/dev/mmcblk0p1  31154688        32  31154656   1% /vol/mmcblk0p1
$ ls -a
./ ../
$ touch foo
$ trash-put foo
trash-put: cannot trash regular empty file `foo'
$ echo $?
0
$ ls -a
./  ../  foo  .Trash-1000/
$ ls -a .Trash-1000
./  ../  info/
$ ls -a .Trash-1000/info
./  ../

But really, I'm more worried about the exit code. Here's a simpler example of that:

$ trash-put nonexistent-file
trash-put: cannot trash non existent `nonexistent-file'
$ echo $?
0

from trash-cli.

andreafrancia avatar andreafrancia commented on August 23, 2024

Fixed in bc3df93.

(env)> trash-put non-existent
trash-put: cannot trash non existent `non-existent'
(env)> echo $?               
74

Please don't rely on the specific value, it may change.

from trash-cli.

tpope avatar tpope commented on August 23, 2024

Zero/nonzero suits me just fine. Thanks!

from trash-cli.

andreafrancia avatar andreafrancia commented on August 23, 2024

You're welcome, let me know for any other problem.

from trash-cli.

Related Issues (20)

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.