On Thu, 16 Sep 1999, Marek Habersack wrote:
>
> mc() {
> if [ -x /usr/bin/mc ]; then
> MC=$(/bin/mktemp /tmp/mc.XXXXXX)
> /usr/bin/mc -P "$@" $MC > $MC
> cd $(cat $MC)
> rm -f $MC
> fi
> }
I think the more simple is:
mc=()
{
cd $(/usr/bin/mc -P "$@")
}
... and doesn't use temporary files.
--
Piotr "Dexter" Roszatycki
mailto:dexter@fnet.pl