From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id 5799A3858D3C for ; Wed, 18 May 2022 05:49:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5799A3858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=systematicsw.ab.ca Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTP id r1dfnNB2rWi4QrCYgnSEOy; Wed, 18 May 2022 05:49:18 +0000 Received: from [10.0.0.5] ([184.64.124.72]) by cmsmtp with ESMTP id rCYnnPGkKCg6jrCYon363B; Wed, 18 May 2022 05:49:26 +0000 X-Authority-Analysis: v=2.4 cv=SMhR6cjH c=1 sm=1 tr=0 ts=628488e6 a=oHm12aVswOWz6TMtn9zYKg==:117 a=oHm12aVswOWz6TMtn9zYKg==:17 a=IkcTkHD0fZMA:10 a=94nOnFI1EgyDtX4ev68A:9 a=QEXdDO2ut3YA:10 Message-ID: Date: Tue, 17 May 2022 23:49:25 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Reply-To: cygwin@cygwin.com Subject: Re: Latest versions of cygwin - Paths with spaces Content-Language: en-CA To: cygwin@cygwin.com References: From: Brian Inglis Organization: Systematic Software In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfIdrh+XObzwuipUzMAkopZg8I36JpShltMI8PMY86kr6sWdJS9dvO7Jr8i8wEQkTTGuhEKY0WF0Kaa/M5rdFmE6dkz3kIKa9anGpnxYRShwCGd4galOv SP7W8i+Mqd3yxxc1WmUoLn3+qb7ry3Frd0Z/8ulh1XPcvPI3VjFIFCTdTML5PW/iwSRaaGnalomaLesT+5KCa7Fk5xBf0l9xYGw= X-Spam-Status: No, score=-1165.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, 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@cygwin.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: , X-List-Received-Date: Wed, 18 May 2022 05:49:28 -0000 On 2022-05-17 21:28, André Bleau wrote: > 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" >> Result: >> sending incremental file list >> rsync: link_stat "/cygdrive/C/Users/giova/Downloads/Teste" "com" "Espaço" failed: No such file or directory (2) >> sent 18 bytes  received 12 bytes  60.00 bytes/sec >> total size is 0  speedup is 0.00 >> rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2] >> Initially I was using cwrsync 6.2.4 (it has the same problem). Using cwrsync 5.5.0 everything works perfectly. >> Now I downloaded cygwin and installed rsync (latest version), but the problem is the same. >> How to make this work without using an old version of cygwin? What shell are you using and what OS is handling command processing? For CMD and Windows, you must to double quote the whole path. For bash and Cygwin, you may use any of the accepted methods: \ , " ", ' ', although it is much more normal, if quoting, to quote the complete path, or only backslash quote the spaces and other special characters. Drive case should make no difference as long as case is ignored on lookup. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.]