Re: (g)mc-4.5.38-2 still broken

1999-09-17 Thread Philip Hands
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

Re: (g)mc-4.5.38-2 still broken

1999-09-17 Thread Marek Habersack
* 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

Re: (g)mc-4.5.38-2 still broken

1999-09-17 Thread Marek Habersack
* 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.

Re: (g)mc-4.5.38-2 still broken

1999-09-17 Thread Philip Hands
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

Re: (g)mc-4.5.38-2 still broken

1999-09-17 Thread Philip Hands
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,

Re: (g)mc-4.5.38-2 still broken

1999-09-17 Thread Michael Bramer
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; (

Re: (g)mc-4.5.38-2 still broken

1999-09-17 Thread Martin Bialasinski
* 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

Re: (g)mc-4.5.38-2 still broken

1999-09-17 Thread Marek Habersack
* 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

Re: (g)mc-4.5.38-2 still broken

1999-09-17 Thread Martin Bialasinski
* 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

(g)mc-4.5.38-2 still broken

1999-09-16 Thread Marek Habersack
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

Re: (g)mc-4.5.38-2 still broken

1999-09-16 Thread Martin Bialasinski
* 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

Re: (g)mc-4.5.38-2 still broken

1999-09-16 Thread Marek Habersack
* 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...

Re: (g)mc-4.5.38-2 still broken

1999-09-16 Thread Philip Hands
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

Re: (g)mc-4.5.38-2 still broken

1999-09-16 Thread Piotr Roszatycki
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

Re: (g)mc-4.5.38-2 still broken

1999-09-16 Thread Marek Habersack
* 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

Re: (g)mc-4.5.38-2 still broken

1999-09-16 Thread Marek Habersack
* 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

Re: (g)mc-4.5.38-2 still broken

1999-09-16 Thread Piotr Roszatycki
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

Re: (g)mc-4.5.38-2 still broken

1999-09-16 Thread Eric Weigel
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,