summaryrefslogtreecommitdiff
path: root/bin/rcdn
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rcdn')
-rwxr-xr-xbin/rcdn12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/rcdn b/bin/rcdn
index d6c90e9..3550a30 100755
--- a/bin/rcdn
+++ b/bin/rcdn
@@ -89,11 +89,15 @@ handle_command_line "$@"
run_hooks pre down
-for dest_and_src in $(lsrc $LS_ARGS); do
- saved_ifs=$IFS
+dests_and_srcs="$(lsrc $LS_ARGS)"
+
+saved_ifs="$IFS"
+IFS='
+'
+for dest_and_src in $dests_and_srcs; do
IFS=:
- set $dest_and_src
- IFS=$saved_ifs
+ set -- $dest_and_src
+ IFS="$saved_ifs"
dest="$1"
sigil="$3"