The way this works is the first thing that happens is your shell parses the entire command line and then calls the resulting command (including parameters). So, your shell sends the "script" the parameters:
/home /media/disk 1
You can fix this from the command line by escaping the \ like:
% script /home /media/disk\\\ 1
Or you can fix it inside the script with sed like:
Code:
SOURCE=`echo $1 | sed - 's/ /\\ /'`
DEST=`echo $2 | sed - 's/ /\\ /'`
HTH
Forrest