--- swap	2003-08-28 15:36:28.000000000 +0200
+++ swap.sh	2003-08-28 15:37:33.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/bash -e
+#!/bin/sh -e
 
 if ! test "$#" = "1" ; then
   echo swaps root filesystem contents with a given directory
@@ -27,7 +27,7 @@
 
 echo i\'m going to move: $move_list
 echo verify it and press Enter to continue.
-read
+read KEY
 
 rmdir /$1/dev
 
@@ -35,7 +35,7 @@
 set -x
 
 mkdir /old
-mv $move_list /old/
+echo "$move_list" | xargs -J % mv % /old/
 LD_LIBRARY_PATH=/old/usr/libexec:/old/lib:/old/usr/lib /old/bin/mv /old/$1/* /
 
 # using native commands now
@@ -45,3 +45,4 @@
 
 set +x
 echo seems it went ok
+
