diff -u5rN dejagnu-1.4.4/lib/remote.exp dejagnu-1.4.4/lib/remote.exp --- dejagnu-1.4.4/lib/remote.exp 2003-10-11 12:12:46.000000000 +0530 +++ dejagnu-1.4.4/lib/remote.exp 2008-04-01 20:43:22.000000000 +0530 @@ -730,11 +730,11 @@ # Allow multiple files to be deleted at once. foreach x $args { append file " $x" } verbose "remote_file deleting $file" - set status [remote_exec $dest "rm -f $file"] + set status [remote_exec $dest rm "$file"] return [lindex $status 0] } } } diff -u5rN dejagnu-1.4.4/lib/rsh.exp dejagnu-1.4.4/lib/rsh.exp --- dejagnu-1.4.4/lib/rsh.exp 2003-10-11 12:12:46.000000000 +0530 +++ dejagnu-1.4.4/lib/rsh.exp 2008-04-01 20:43:13.000000000 +0530 @@ -181,11 +181,11 @@ if [board_info $desthost exists hostname] { set desthost [board_info $desthost hostname] } - set status [catch "exec $RSH $rsh_useropts $desthost rm -f $destfile |& cat" output] + set status [catch "exec $RSH $rsh_useropts $desthost \"rm -f\" $destfile |& cat" output] set status [catch "exec $RCP $srcfile $rcp_user$desthost:$destfile |& cat" output] if { $status == 0 } { verbose "Copied $srcfile to $desthost:$destfile" 2 return $destfile } else { @@ -275,11 +275,11 @@ # no output but the exit code is non-zero. if { $inp == "" } { set inp "/dev/null" } - set status [catch "exec cat $inp | $RSH $rsh_useropts $hostname sh -c '$cmd $pargs \\; echo XYZ\\\${?}ZYX' |& cat" output] + set status [catch "exec cat $inp | $RSH $rsh_useropts $hostname \"sh -c\" '$cmd $pargs \\; echo XYZ\\\${?}ZYX' |& cat" output] verbose "$RSH output is $output" # `status' doesn't mean much here other than rsh worked ok. # What we want is whether $cmd ran ok. if { $status != 0 } { regsub "XYZ(\[0-9\]*)ZYX\n?" $output "" output