[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    Re: [gentoo-dev] cmake.eclass
From:       Mike Frysinger <vapier () gentoo ! org>
Date:       2006-08-24 4:02:21
Message-ID: 200608240002.21955.vapier () gentoo ! org
[Download RAW message or body]

On Wednesday 23 August 2006 23:23, lnxg33k wrote:
> Mike Frysinger wrote:
> > use this instead ... makes for cleaner output:
> > pushd "${BUILDDIR}" > /dev/null
>
> Would `cd foo` and `cd -` work just as well in place of `pushd` and `popd`?
> Recent tip I ran across and wondering if it holds up across the board.

'cd -' is generally for interactive shells, pushd/popd is for scripts

plus, while `cd -` is a stack of depth 1, pushd/popd has an infinite stack ... 
so you dont have to worry about recursive calls being wrong
-mike

[Attachment #3 (application/pgp-signature)]
-- 
gentoo-dev@gentoo.org mailing list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic