Re: weirdness with cd in user menu

On Wed, 2002-03-27 at 09:44, Roman Neuhauser wrote:
    What I *think* happens is that the cd command is executed in a
    forked off shell. You need to execute it without forking. Try
    replacing the "cd .." line with "exec cd .."

Actually, the cd and the umount command are written to a script, which
is then executed. And 'exec cd' doesn't work in bash, because cd is a
builtin command. I tried to create an external script that looked like

echo coming from $oldpath
cd ..
umount $oldpath
cd $oldpath

Didn't work either. I guess it's not a specific mc problem.


Attachment: signature.asc
Description: This is a digitally signed message part

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