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 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 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 Subject: Re: Latest versions of cygwin - Paths with spaces Content-Language: en-CA To: cygwin AT cygwin DOT com References: From: Brian Inglis Organization: Systematic Software In-Reply-To: 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 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: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 24I5njCs023605 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.] -- 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