This is the mail archive of the
mailing list for the Cygwin project.
Re: zsh bug: Incorrect (misleading) error message in zsh when using rm and drive letter is specified
- From: Ken Brown <kbrown at cornell dot edu>
- To: cygwin at cygwin dot com
- Date: Tue, 23 Aug 2016 11:16:50 -0400
- Subject: Re: zsh bug: Incorrect (misleading) error message in zsh when using rm and drive letter is specified
- Authentication-results: sourceware.org; auth=none
- References: <email@example.com>
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
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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple