Commit Graph

47 Commits

Author SHA1 Message Date
9d18bcc775 Standardized indentation and moved url encoding/decoding to a more
standardized location.
2020-08-06 15:25:48 -07:00
f154424db2 Fixed indent -> 4 spaces 2020-05-11 19:30:58 -07:00
7631304d4c Fix for behavior of bin -f nonexistent (was flipped) 2020-05-11 19:27:40 -07:00
1a519845c5 Fixed issue when trash is empty 2020-05-04 10:06:57 -07:00
c459ac0b67 Updated help suggestion to use man 2020-05-02 15:18:43 -07:00
f33b012705 Added "bin" to usage 2020-05-02 15:17:02 -07:00
3f06a798b5 Renamed to trash to bin 2020-05-02 14:50:41 -07:00
033bb97761 Formatting tweaks. 2020-04-07 21:01:09 -07:00
f0e1ae3f88 Tidied up readme. 2020-04-07 20:57:18 -07:00
bf676d46f2 Removed some non-posix-complaint option stuff 2020-04-07 20:34:35 -07:00
db5da5b2a0 Updated doc and cleaned up some edge cases. 2020-04-07 02:25:48 -07:00
8b8f9cbf25 Fixed a bunch of issues and made trash -u, trash -e, and trash -E
behave more sensibly with respect to their arguments.
2020-04-07 02:05:41 -07:00
ae09cfc9de Fixed field/record separator mixup 2020-04-07 00:19:57 -07:00
c6a4e53fbc Fix for list trash 2020-04-07 00:14:05 -07:00
887349c102 Removed mac code 2020-04-07 00:12:35 -07:00
e87a38433e Minor cleanup/fixes 2020-04-07 00:10:47 -07:00
59244e3df8 Fixed version 2020-04-07 00:02:15 -07:00
699ca98f42 Added more flexibility to trash -l with RS and FS vars. 2020-04-07 00:01:42 -07:00
70662147dc Cleaned up a little and improved trash -l output 2020-04-06 23:46:42 -07:00
b9c1921b13 Added manpage 2020-04-06 23:31:05 -07:00
5d645924da Added tests and makefile (mainly for installing) 2020-04-06 23:18:08 -07:00
69d18056c4 Totally revamped and improved bashtrash. 2020-04-06 23:17:08 -07:00
Robert Rothenberg
f19c6dc1ff Corrected minor typo in README 2011-11-06 17:57:41 +00:00
Robert Rothenberg
247de2d327 Fixed problems with getopt on filenames with spaces by using bash's
builtin getopts.

The (minor) downside is that it only accepts single-letter options,
although the options can be combined.
2011-11-05 18:35:57 +00:00
Robert Rothenberg
9185ec465a Updated README 2011-11-05 16:50:27 +00:00
Robert Rothenberg
702303946f Added "dotfile" prefix to dotfiles in the trashcan. 2011-11-05 16:43:09 +00:00
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