Re: weirdness with cd in user menu
- From: Roman Neuhauser <neuhauser mobil cz>
- To: Juergen Fiedler <juergen fiedlerfamily net>
- Cc: mc gnome org
- Subject: Re: weirdness with cd in user menu
- Date: Wed, 27 Mar 2002 15:44:29 +0100
From: Juergen Fiedler <juergen fiedlerfamily net>
I am trying to get the following menu item to work:
---
= t d
U Unmount current directory
cd ..
umount %d
---
Somehow, the 'cd' does not seem to work. If I select the menu item from
within the /rio folder, I get:
---
juergen aquarius:/rio$ /tmp/mcusrjxZQvd
umount: /rio: device is busy
---
So the script changes to /, but mc stays in /rio
Does anyone know how I could make a menu item that unmounts the current
directory?
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 .."
--
FreeBSD 4.4-STABLE
3:40PM up 2 days, 23:25, 14 users, load averages: 0.01, 0.03, 0.00
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]