Commit Graph

21 Commits

Author SHA1 Message Date
Robert Rothenberg
cd1e34565d Changes to work on systems with older versions of mv and mktemp such
as CentOS 5.

Fix issue where file name included extension twice.
2011-11-05 16:38:10 +00:00
Robert Rothenberg
1795ec5114 Updated README about need for recent version of mv 2011-07-05 10:15:04 +01:00
Robert Rothenberg
f1efef4a1f When mv fails, prints an error and removes the .trashinfo file.
Added comment about permissions/ownership of .trashinfo file.
2011-06-22 07:28:55 +01:00
Robert Rothenberg
46163315ca Fixed bug with trashing directories 2011-06-22 07:11:51 +01:00
Robert Rothenberg
63dedc66fd Updated README to reflect changes to requirements 2011-06-18 13:29:34 +01:00
Robert Rothenberg
50cb5923c7 Uses mktemp to generate unique name in trashcan directory 2011-06-18 13:26:37 +01:00
Robert Rothenberg
5236943a74 Fixed bug with spaces in filenames 2011-06-18 13:05:52 +01:00
Robert Rothenberg
6fedcfe320 Full path of the program name is not shown. 2011-06-12 21:51:22 +01:00
Robert Rothenberg
532dc25d86 Added README file 2011-03-27 22:23:56 +01:00
Robert Rothenberg
d53465c5b7 Added -f and -r options for compatability with rm.
Minor code cleanup.
2011-03-17 15:03:32 +00:00
Robert Rothenberg
36fca41a17 Updated version number 2011-03-17 14:56:35 +00:00
Robert Rothenberg
f779e08b36 Added interactive option to help 2011-03-17 14:56:01 +00:00
Robert Rothenberg
f72117748b Deleted trailing whitespace 2011-03-17 14:53:36 +00:00
Robert Rothenberg
98f88cf1dc Modularised code.
--interactive long option accepts arguments.

Fixed bug with trashing file that cannot be found.
2011-03-17 14:46:49 +00:00
Robert Rothenberg
144d10da69 Modularised code.
Added -i,--interactive option for confirmation.
2011-03-17 14:12:57 +00:00
Robert Rothenberg
deaf3beea9 Reorganised who verbose option is handled 2011-03-17 13:36:28 +00:00
Robert Rothenberg
588de03313 Exits after showing help 2011-03-17 10:02:22 +00:00
Robert Rothenberg
9498c4259f Removed commented-out code 2011-03-17 09:59:03 +00:00
Robert Rothenberg
da2fd73d15 Added support for options, by using getopts. Support for "standard"
set of options:

  -h, --help
  -v, --verbose
  --version

Move command is now only verbose if the option is selected.

Updated comments and copyright message.
2011-03-17 09:55:44 +00:00
Robert Rothenberg
aa940b2f46 Improved querying of mount points via teringijer@reddit 2010-11-07 17:30:34 +00:00
Robert Rothenberg
ea4bdeaf51 Initial import 2010-06-02 15:14:17 +01:00