Dan Nicholson wrote: > Randy McMurchy wrote: >> BLFS Trac wrote these words on 10/08/06 15:44 CST: >> >>> Alright, I'm just going to commit this change since I've gotta get going. >>> If anyone is strongly opposed to the change, just revert it. It's not that >>> big a deal to me, but it seems like the natural thing to do to avoid all >>> the cd'ing. >> No need to get overly dramatic. The change only saves one cd command >> (and adds a set of parens and a semi-colon), so to me it is a push. >> >> :-) > > Sure. But actually, it isn't the number of keystrokes or commands I was > trying to save. It's the fact that cd'ing into the directory and then > cd'ing the correct number of parent directories out seems is an error > that can be guarded against by running in a subshell.
You could do the same thing without the overhead of a subshell with pushd/popd. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
