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

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 invok

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 foun

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: >

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 Philip Hands
Marek Habersack <[EMAIL PROTECTED]> writes: > [1 ] > * 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/profil

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. > >

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 th

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

1999-09-17 Thread Philip Hands
Marek Habersack <[EMAIL PROTECTED]> writes: > [1 ] > * 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

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

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

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=()

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

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 "$@") } ... an

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 s

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

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 functio