aboutsummaryrefslogtreecommitdiffstats
path: root/bash_include
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2012-01-21 21:12:09 +0800
committerLAN-TW <lantw44@gmail.com>2012-01-21 21:12:09 +0800
commiteebf2c4678a9398cfd3bc36d75aec3d805ae98aa (patch)
treec2e0458ed0701824744e2d3c48eceb31664c6191 /bash_include
parentff9b88d844b726563623bc3a75f01b0857156cee (diff)
downloadconfigfile-eebf2c4678a9398cfd3bc36d75aec3d805ae98aa.tar
configfile-eebf2c4678a9398cfd3bc36d75aec3d805ae98aa.tar.gz
configfile-eebf2c4678a9398cfd3bc36d75aec3d805ae98aa.tar.bz2
configfile-eebf2c4678a9398cfd3bc36d75aec3d805ae98aa.tar.lz
configfile-eebf2c4678a9398cfd3bc36d75aec3d805ae98aa.tar.xz
configfile-eebf2c4678a9398cfd3bc36d75aec3d805ae98aa.tar.zst
configfile-eebf2c4678a9398cfd3bc36d75aec3d805ae98aa.zip
bash_include: 實作回收筒刪除功能bash_include-20120121
Diffstat (limited to 'bash_include')
-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 ()