Re: Fwd: Current CVS: cannot change to Name+Version?



Hello!

> And it's working like this: (from any directory)
> 
> /usr/local/bin/mc
> 
> Looks like here's a realtive-path-problem?

You have a shell function "mc", so when you run "mc" without full path,
the function is run.  That function calls the real binary "mc" with the
"-P" argument. The "mc" function is now obsolete.  Most likely you had an
old version of mc and didn't uninstall it properly.

Remove files /etc/profile/mc.sh and /etc/profile/mc.csh - the "mc"  
function is defined there.

> I just get the latest CVS over cvs command and I got these error message when
> I try to start the mc:
> 
> -P: missing argument
> bash: cd: GNU Midnight Commander 4.6.0-pre1b: No such file or directory
> 
> Is he trying to change into a directory called like the mc's name?

Yes.  The "mc" function was broken by design - it assumed that mc will
always print the last working directory on exit.  This was impossible to
guarantee - mc could be killed by another process.

The "mc" function was removed for security reasons, so I'm not going to 
make mc compatible with the old script.

-- 
Regards,
Pavel Roskin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]