public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: tcsh bug regarding rmstar
Date: Fri, 17 Mar 2017 11:47:00 -0000	[thread overview]
Message-ID: <20170317204751.cb1ef0bf54b0e08101450c7b@nifty.ne.jp> (raw)

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

                 reply	other threads:[~2017-03-17 11:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170317204751.cb1ef0bf54b0e08101450c7b@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).