delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/05/18/00:05:33

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 953083858D3C
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=spocom.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=spocom.com
DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; d=spocom.com; s=mail;
h=received:date:from:to:subject:message-id:mail-followup-to
:references:mime-version:content-type:content-disposition
:content-transfer-encoding:in-reply-to:x-operating-system
:user-agent;
b=oWjLJSxYExaC+443A+auG7UvGAdKqoTvtZpd4gbGMAe1F4aL58f2lh8/ulZafHa5T
/7SMgHTx849p/SK8zlhvg==
Date: Tue, 17 May 2022 21:04:54 -0700
From: Gary Johnson <garyjohn AT spocom DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Latest versions of cygwin - Paths with spaces
Message-ID: <20220518040454.GC11054@phoenix>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CPXPR80MB5429BCFD2842D9EB569E5F26BBCE9 AT CPXPR80MB5429 DOT lamprd80 DOT prod DOT outlook DOT com>
<DM5PR14MB1212EFE636111B161861CF5293D19 AT DM5PR14MB1212 DOT namprd14 DOT prod DOT outlook DOT com>
MIME-Version: 1.0
In-Reply-To: <DM5PR14MB1212EFE636111B161861CF5293D19@DM5PR14MB1212.namprd14.prod.outlook.com>
X-Operating-System: Linux 2.6.32-74-generic GNU/Linux
User-Agent: Mutt/1.5.20 (2009-06-14)
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 24I45WBS006984

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


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019