public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* zsh bug: Incorrect (misleading) error message in zsh when using rm and drive letter is specified
@ 2016-08-23  9:04 Ronald Fischer
  2016-08-23 16:12 ` Ken Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Ronald Fischer @ 2016-08-23  9:04 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: zsh bug: Incorrect (misleading) error message in zsh when using rm and drive letter is specified
  2016-08-23  9:04 zsh bug: Incorrect (misleading) error message in zsh when using rm and drive letter is specified Ronald Fischer
@ 2016-08-23 16:12 ` Ken Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Ken Brown @ 2016-08-23 16:12 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-23 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23  9:04 zsh bug: Incorrect (misleading) error message in zsh when using rm and drive letter is specified Ronald Fischer
2016-08-23 16:12 ` Ken Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).