This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Bug or WAD? Midnight Commander F10 different in xterm than native or rxvt
- From: Marco Atzeri <marco_atzeri at yahoo dot it>
- To: cygwin-xfree at cygwin dot com
- Date: Fri, 9 Jul 2010 06:58:36 +0000 (GMT)
- Subject: Re: Bug or WAD? Midnight Commander F10 different in xterm than native or rxvt
- Reply-to: cygwin-xfree at cygwin dot com
--- Ven 9/7/10, Larry Hall ha scritto:
> On 7/8/2010 10:35 PM, Peter Farley
> wrote:
> > I don't know if this is the right place to ask this
> question, but if it is
> > not please advise me where to send it.
> >
> > Midnight Commander exits with F10, and in a native
> bash window or rxvt F10
> > exits to the last directory viewed.? In an xterm
> though, it exits to the
> > original directory from which MC was started.
> >
> > Do you think this a bug in MC or is it WAD?? If
> you think it's a bug in MC I
> > will gladly debug it myself, I just want to know if
> it's WAD for xterm's
> > first.
> >
> > I am using a fresh cygwin + cygwin/X install on WinXP
> SP3, and I will supply
> > the usual problem report documentation if needed to
> answer my question.
>
> Sorry, I don't know anything about MC really but isn't
> there some doc on
> it that describes what F10 is supposed to do?
>
> --
> Larry Hall
on my Win-XP SP2 under cygwin/X
MC with F10 exits in the current directory
Peter,
as mc is an alias
alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
I guess that under X this wrapper is working
differently than under console
---------------mc-wrapper.sh------------------
MC_USER=`id | sed 's/[^(]*(//;s/).*//'`
MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
/usr/bin/mc -P "$MC_PWD_FILE" "$@"
if test -r "$MC_PWD_FILE"; then
MC_PWD="`cat $MC_PWD_FILE`"
if test -n "$MC_PWD" && test -d "$MC_PWD"; then
cd "$MC_PWD"
fi
unset MC_PWD
fi
rm -f "$MC_PWD_FILE"
unset MC_PWD_FILE
------------------------------------------------
Regards
Marco
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/