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 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: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit 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