Latest versions of cygwin - Paths with spaces
Gary Johnson
garyjohn@spocom.com
Wed May 18 04:04:54 GMT 2022
On 2022-05-18, André Bleau wrote:
> Hi Giovani.
>
> Giovani Erthal wrote:
>
> > I'm using rsync to perform backups. But I have errors in paths with spaces.
> >
> > Source: C:\Users\giova\Downloads\Teste com espaço
> > Destination: C:\Users\giova\Downloads\Destino com espaço
> >
> > Command:
> >
> > rsync.exe -avz -s --no-perms --no-owner --no-group --chmod=ugo=rw /cygdrive/C/Users/giova/Downloads/Teste"
> >
> > "com" "Espaço /cygdrive/C/Users/giova/Downloads/Destino" "com" "espaço
>
> Wrong space quoting. Try:
>
> rsync.exe -avz -s --no-perms --no-owner --no-group --chmod=ugo=rw "/cygdrive/C/Users/giova/Downloads/Teste com Espaço" "/cygdrive/C/Users/giova/Downloads/Destino com espaço"
André's quoting is unusual, but it's not wrong.
For example:
$ cat foo
#!/bin/bash
for word in "$@"
do
echo "$word"
done
$ ./foo one two" "three four
one
two three
four
However, I've always seen the C: drive under /cygdrive as
/cygdrive/c, with a lower-case c.
Regards,
Gary
More information about the Cygwin
mailing list