aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bash_include12
1 files changed, 11 insertions, 1 deletions
diff --git a/bash_include b/bash_include
index f81f8a9..6d3937b 100644
--- a/bash_include
+++ b/bash_include
@@ -372,7 +372,17 @@ function trash_mv ()
function trash_rm ()
{
- echo bb
+ split_arguments "$@"
+ local -i i=0
+ while [ "${arglist[$i]}" ]
+ do
+ arglist[$i]="-e ${arglist[$i]}p"
+ i=$i+1
+ done
+ trash_dirname=`find "$trashdir" -mindepth 1 -maxdepth 1 | sort | sed -n ${arglist[*]} `
+ echo 'Type rm -rf $trash_dirname to remove.'
+ unset arglist
+ unset prefixlist
}
function trash_ls ()