Marek Habersack [EMAIL PROTECTED] writes:
[1 text/plain; us-ascii (quoted-printable)]
* Philip Hands said:
Wait a second.
So this mc script is an attempt to leave you in the directory you were
in when you left mc ?
[snip]
/etc
/tmp
the ``cd /etc'' only applies in the
* Piotr Roszatycki said:
Well that won't work will it?
Try running this:
cd /tmp; ( cd /etc; pwd ); pwd
No no, it isn't mc script but only function in your ~/.bash_profile or
global /etc/profile.
Exactly that was the point. The function executes in the context of the
current
* Eric Weigel said:
I'm afraid many people have some kind of function or aliases related
to _real_ mc binary and current mc wrapper can broke it.
BTW,
/usr/bin/mcedit is a symlink to /etc/bin/mc which is an only wrapper.
This is the reason that mcedit doesn't work already.
Quite.
Marek Habersack [EMAIL PROTECTED] writes:
[1 text/plain; us-ascii (quoted-printable)]
* Piotr Roszatycki said:
Well that won't work will it?
Try running this:
cd /tmp; ( cd /etc; pwd ); pwd
No no, it isn't mc script but only function in your ~/.bash_profile or
Marek Habersack [EMAIL PROTECTED] writes:
Well then, they should be provided to the Debian user. They, AFAIR,
install a similar function to the one presented in the other
mail. The standard /etc/profile and similar scripts for other shells
could be modified to source all scripts in, eg,
On Thu, Sep 16, 1999 at 07:54:11PM +0200, Piotr Roszatycki wrote:
On 16 Sep 1999, Philip Hands wrote:
Wait a second.
So this mc script is an attempt to leave you in the directory you were
in when you left mc ?
Well that won't work will it?
Try running this:
cd /tmp; (
* Philip == Philip Hands [EMAIL PROTECTED] wrote:
Philip Personally, I would be quite upset to find that someone had put this
Philip into my environment, because I have a very strong expectation that
Philip when I exit a program, I'll be in the directory I started from.
Personally, I found it
* Philip Hands said:
No no, it isn't mc script but only function in your ~/.bash_profile or
global /etc/profile.
Exactly that was the point. The function executes in the context of the
current shell, not in the child shell which is created when a #!/bin/bash
script is invoked.
Fair
* Michael == Michael Bramer [EMAIL PROTECTED] wrote:
Michael I make a new upload (or you make a NMU) and remove all the last
changes.
I just got blessings from Michael to do the NMU. Just to inform you,
so there are no duplicate effords.
Ciao,
Martin
Hi,
I've just upgraded the gmc to the latest potato version, but it still has
the broken /usr/bin/mc script which calls itself recursively. Also, wouln't
it be cleaner if the postinst for this package added an appropriate alias to
the /etc/profile and/or /etc/csh.cshrc (and possibly other
* Marek == Marek Habersack [EMAIL PROTECTED] wrote:
Marek Also, wouln't it be cleaner if the postinst for this package
Marek added an appropriate alias to the /etc/profile and/or
Marek /etc/csh.cshrc (and possibly other global shell startup
Marek scripts) an alias definition, or a function to
* Martin Bialasinski said:
Marek /etc/csh.cshrc (and possibly other global shell startup
Marek scripts) an alias definition, or a function to call mc in a way
Marek which would preserve the exit path of mc?
No, directly changing files part of other packages is not allowed by
policy.
Hmm...
Wait a second.
So this mc script is an attempt to leave you in the directory you were
in when you left mc ?
Well that won't work will it?
Try running this:
cd /tmp; ( cd /etc; pwd ); pwd
and you'll get
/etc
/tmp
the ``cd /etc'' only applies in the shell executed in the brackets.
The
On Thu, 16 Sep 1999, Marek Habersack wrote:
mc() {
if [ -x /usr/bin/mc ]; then
MC=$(/bin/mktemp /tmp/mc.XX)
/usr/bin/mc -P $@ $MC $MC
cd $(cat $MC)
rm -f $MC
fi
}
I think the more simple is:
mc=()
{
cd $(/usr/bin/mc -P $@)
}
... and doesn't use
* Philip Hands said:
Wait a second.
So this mc script is an attempt to leave you in the directory you were
in when you left mc ?
[snip]
/etc
/tmp
the ``cd /etc'' only applies in the shell executed in the brackets.
The same goes for the mc script. Any effect of the cd in the script
* Piotr Roszatycki said:
On Thu, 16 Sep 1999, Marek Habersack wrote:
mc() {
if [ -x /usr/bin/mc ]; then
MC=$(/bin/mktemp /tmp/mc.XX)
/usr/bin/mc -P $@ $MC $MC
cd $(cat $MC)
rm -f $MC
fi
}
I think the more simple is:
mc=()
{
cd $(/usr/bin/mc
On 16 Sep 1999, Philip Hands wrote:
Wait a second.
So this mc script is an attempt to leave you in the directory you were
in when you left mc ?
Well that won't work will it?
Try running this:
cd /tmp; ( cd /etc; pwd ); pwd
No no, it isn't mc script but only function in your
On Thu, 16 Sep 1999 19:54:11 +0200 (CEST), Piotr Roszatycki wrote:
No no, it isn't mc script but only function in your ~/.bash_profile or
global /etc/profile.
I'm afraid many people have some kind of function or aliases related
to _real_ mc binary and current mc wrapper can broke it.
BTW,
18 matches
Mail list logo