command line -P option doesn't work anymore ?

Djamé Seddah djame.seddah at loria.fr
Sun Apr 18 17:37:05 UTC 2004


hello,
I'm using a new mandrake 9.2 distro and the -P option doesn't work 
anymore, in my former 8.0 it used to work as excepted and not now...
I'm sorry if this has been discussed before but I've been unable to find 
it trhough the mailing liste archive....

here's the wrapper script

mc ()
{
        mkdir -p $HOME/.mc/tmp 2> /dev/null
        chmod 700 $HOME/.mc/tmp
        MC=$HOME/.mc/tmp/mc-$$
        /usr/bin/mc -p "$@" > "$MC"
        cd "`cat $MC`"
        rm -f "$MC"
        unset MC;
}

the result was that mc doesn't change directory at all



I tried this other one :
mc () { cd "$( /usr/bin/mc -P "$@" )" ; }

and I've got an error :
-P: missing argument
bash: cd: GNU Midnight Commander 4.6.0: No such file or directory

if I did /usr/bin/mc -P, i've got the same error

here're the results (in french, helas) of mc -V

[djame at sarace djame]$ /usr/bin/mc -V
GNU Midnight Commander 4.6.0
Système de Fichier Virtuel (VFS) : tarfs, extfs, cpiofs, ftpfs, fish, 
undelfs
Avec l'éditeur intégré
Utilise la bibliothèque S-Lang installée dans le système avec la base de 
données terminfo
Avec le support des sous-shells par défaut
Avec le support des opérations en tâche de fond
Avec support de la souris pour xterm et la console Linux
Avec le support de l'internationalisation
Avec le support de plusieurs codepages



Thanks for reading and for keeping the work on my favourite filemanager



Djame



More information about the mc mailing list