This is the mail archive of the
cygwin
mailing list for the Cygwin project.
zsh bug: Incorrect (misleading) error message in zsh when using rm and drive letter is specified
- From: Ronald Fischer <ynnor at mm dot st>
- To: cygwin at cygwin dot com
- Date: Tue, 23 Aug 2016 09:57:31 +0200
- Subject: zsh bug: Incorrect (misleading) error message in zsh when using rm and drive letter is specified
- Authentication-results: sourceware.org; auth=none
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.
Version information:
zsh 5.1.1 (x86_64-unknown-cygwin)
Ronald
--
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