public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* tcsh bug regarding rmstar
@ 2017-03-17 11:47 Takashi Yano
  0 siblings, 0 replies; only message in thread
From: Takashi Yano @ 2017-03-17 11:47 UTC (permalink / raw)
  To: cygwin

Hello,

Today, I noticed a strange behaviour of tcsh regarding rmstar.
32 bit version of tcsh 6.20.00 stops until interrupted by ^C
when executing 'rm *', if 'rmstar' is set.

This can be reproduced by following steps.

--- form here ---
set rmstar
unalias rm
mkdir testdir
cd testdir
rm *
--- to here ---

I looked into this problem, and found the culprit is that a variable
is defined as inappropriate type. That is, the type of auto variable
'c', defined in function getYN() in sh.func.c, should not be int,
but char.

I cannot reproduce this with 64 bit version, but the issue should
potentially exists in it.

It seems that this is the known issue, and is already fixed in HEAD
of github.
https://github.com/tcsh-org/tcsh

I hope this bug will be fixed in the next release.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

--
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] only message in thread

only message in thread, other threads:[~2017-03-17 11:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-17 11:47 tcsh bug regarding rmstar Takashi Yano

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).