summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr')
-rw-r--r--subr/ex_rtl_fileop.subr10
1 files changed, 10 insertions, 0 deletions
diff --git a/subr/ex_rtl_fileop.subr b/subr/ex_rtl_fileop.subr
index 62457835..e99ee773 100644
--- a/subr/ex_rtl_fileop.subr
+++ b/subr/ex_rtl_fileop.subr
@@ -19,6 +19,16 @@ ex_rtl_fileop() {
exp_rtl_fileop_check "${PREFIX}" "${1}";
cd -- "${1}";
fi; ;;
+ cp_follow)
+ if [ ${#} -lt 2 ]; then
+ ex_rtl_log_msg failexit "Missing parameters (in: cp_follow ${*}.)";
+ else
+ _src="${*}"; _src="${_src% *}";
+ _dst="${*}"; _dst="${_dst##* }";
+ ex_rtl_log_msg vvvo "Copying \`${_src}' into \`${_dst}' w/ -pLR.";
+ exp_rtl_fileop_check "${PREFIX}" "${*}";
+ cp -pLR -- "${@}";
+ fi; ;;
cp) if [ ${#} -lt 2 ]; then
ex_rtl_log_msg failexit "Missing parameters (in: cp ${*}.)";
else