Re: Bug#419848: how to copy files containing space?
On Wed, Apr 18, 2007 at 02:11:37PM +0530, Joshua Pritikin wrote:
> scp is splitting on whitespace even when I quote the command line
> argument:
>
> ltsp1:/home/sachin/tmp# scp 'leghorn:/mnt/rdbackup/home/sachin/Daily report
> +April -07.ods' .
> scp: /mnt/rdbackup/home/sachin/Daily: No such file or directory
> scp: report: No such file or directory
> scp: April: No such file or directory
> scp: -07.ods: No such file or directory
You probably just need to double up the quotes the name, so that the
remote shell sees them. Something like:
scp '"leghorn:/mnt/rdbackup/home/sachin/Daily report April -07.ods"' .
Reply to: