X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=icX3G0RbuIntiDAA V8fD8KyRLgMrxfwOEP3kgurXdkDBnQfKdGT5s5GRc5t4xxjFVZHzZ17fG5gLrVU3 VWlDppcFQPwt7EXFwavdKklBWgcW4EOrUoE42Vt0jQQJ1veLi7MfjaJ+XMCy/loE kFNtnHKUsGHP7Cg851RCg83Bk+s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=hndS3innrTaNbxcPVvKw5L 4xbGM=; b=TqKjT2Ih++/90D0x61/GFLbS1mzsMP2sImX2PoFM3BBpPqwLU38AET hvLUyPLEX6EHjX7jE3W28SbRJHFp1YtdNJ6R2BuWOYbYiAHCCkSZJfdPUJIlP8aY uFxUqgmESsQJc0V4Oxn3K67xV+x+UV5+WiTUqhkSI0ZVjPHQuJXSY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_40,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Ronald, Fischer, fischer, H*f:sk:1471939 X-HELO: limerock03.mail.cornell.edu X-CornellRouted: This message has been Routed already. Subject: Re: zsh bug: Incorrect (misleading) error message in zsh when using rm and drive letter is specified To: cygwin AT cygwin DOT com References: <1471939051 DOT 969254 DOT 703288945 DOT 63356948 AT webmail DOT messagingengine DOT com> From: Ken Brown Message-ID: <21fa5c1b-ec16-f6fe-ea14-fa2d979f9c9b@cornell.edu> Date: Tue, 23 Aug 2016 11:16:50 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1471939051.969254.703288945.63356948@webmail.messagingengine.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes On 8/23/2016 3:57 AM, Ronald Fischer wrote: > I observed this: > > -0-1- ~/exp > rm e:/media/* > zsh: sure you want to delete all the files in /home/FISRONA/exp/e:/media > [yn]? n > > We see that zsh is catching the case that I want to rm all files in the > specified directory, and warns me about it (note that it is a zsh error > message, not a error message from rm), which is fine and expected > behaviour (which can be controlled by the zsh option RM_STAR_SILENT). > However, the path printed by zsh is wrong: It interprets e:/... as > relative path, while it is an absolute path. It seems that zsh is not > translating windows pathes using a drive letter to /cygdrive/... pathes > in this case. Some Cygwin applications do this translation, but not all. You're better off just using Posix paths. Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple