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

Re: (g)mc-4.5.38-2 still broken



* Piotr Roszatycki said:
> 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.
But it's the same what using a script file - it uses a subshell, and the
point is to save on resources.

marek

Attachment: pgpARHUFeOI9c.pgp
Description: PGP signature


Reply to: