This is the mail archive of the
cygwin
mailing list for the Cygwin project.
tcsh bug regarding rmstar
- From: Takashi Yano <takashi dot yano at nifty dot ne dot jp>
- To: cygwin at cygwin dot com
- Date: Fri, 17 Mar 2017 20:47:51 +0900
- Subject: tcsh bug regarding rmstar
- Authentication-results: sourceware.org; auth=none
- Dkim-filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com v2HBlnj0028060
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