Re: Midnight Commander /tmp race

From: willyat_private
Date: Tue Mar 17 1998 - 21:10:10 PST

  • Next message: Daniel Reed: "Re: Another day, another race - lynx 2.7.1"

    Good $daytime,
    
    > Date: Tue, 17 Mar 1998 18:21:09 +0100
    > From: Pavel Kankovsky <peakat_private>
    > To: BUGTRAQat_private
    > Subject: Re: Midnight Commander /tmp race
    
    > Solution? Don't use any temporary file at all.
    
    > mc()
    > {
    >         MC=`/usr/bin/mc -P "$@"`
    >         [ -n "$MC" ] && cd $MC
    >         unset MC
    > }
    
    > The function is from mcfn_install script. The alias in lib/mc.csh is
    > similar. But lib/mc.sh is the aformentioned lame one. It's absurd.
    
    Nope.  This (rather old) version breaks Ctrl-O for nonroot bash
    instances.  However it works with Bourne shell.
    
      Regards,
      Willy.
    
    --
    "No easy hope or lies        | Vitaly "Willy the Pooh" Fedrushkov
     Shall bring us to our goal, | Information Technology Division
     But iron sacrifice          | Chelyabinsk State University
     Of Body, Will and Soul."    | mailto:willyat_private  +7 3512 156770
                       R.Kipling | http://www.csu.ac.ru/~willy  VVF1-RIPE
    



    This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 13:46:11 PDT