Fred JamesTue Nov 15 12:07:31 PST 2005
Bob Miller wrote: >Fred James wrote: > > > >>I was able to get this one to work by removing the 'echo', and adding \" >>in four places (see below) - granted my testing was all local. Does it >>behave differently copying from remote? >> >> > >Oh, right. The remote shell will strip off another level of >quoting. But you're local, so there shouldn't be a remote >shell. I'm not sure why you needed the extra quotes -- >did your filenames have quotes in them? > > Bob Miller No, the extra quotes were to deal with the blank (space) in the file names (example: "bar baz"), which was part of the original requirement in the post from Patrick Wade. Without the extra quotes the command for that file reads something like 'scp bar baz ...' instead of treating "bar baz" as the file name (space included). Regards Fred James