public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Marco Atzeri <marco_atzeri@yahoo.it>
To: cygwin-xfree@cygwin.com
Subject: Re: Bug or WAD? Midnight Commander F10 different in xterm than native or rxvt
Date: Fri, 09 Jul 2010 06:58:00 -0000 [thread overview]
Message-ID: <838437.24058.qm@web25508.mail.ukl.yahoo.com> (raw)
In-Reply-To: <4C368BD5.8020500@cygwin.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/
next prev parent reply other threads:[~2010-07-09 6:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-09 2:36 Peter Farley
2010-07-09 2:39 ` Larry Hall (Cygwin X)
2010-07-09 6:58 ` Marco Atzeri [this message]
2010-07-11 4:41 ` Peter Farley
2010-07-13 19:21 ` Jon TURNEY
2010-07-16 2:46 ` Peter Farley
2010-07-11 4:57 ` Peter Farley
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=838437.24058.qm@web25508.mail.ukl.yahoo.com \
--to=marco_atzeri@yahoo.it \
--cc=cygwin-xfree@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).