> From: Juergen Fiedler <[EMAIL PROTECTED]>
> 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
_______________________________________________
Mc mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/mc