From: Wesley J Landaker Date: 2003-02-08T06:45:12+09:00 Subject: Re: Dir.pushdir and Dir.popdir On Friday 07 February 2003 2:32 pm, Mark Wilson wrote: > On Friday, February 7, 2003, at 04:10 PM, Wesley J Landaker wrote: > > [snip] > > I don't know if this functionality is included somewhere else and I > > just > > missed it, but it sure is handy to have Dir be able to push and pop > > directories as well as just chdir. I often use something like this: > > > > [snip] > > The standard library includes this functionality in shell.rb. > > pushdir(path = nil) {|| ...} Thanks! That's pretty handy .. I haven't really ever used anything in shell.rb before. It still "feels" better to me to have it added to the Dir object (since that's where chdir is) -- but fortunately, this is ruby, and I can add it there in my own programs easily. ;) -- Wesley J. Landaker - wjl@icecavern.net OpenPGP FP: C99E DF40 54F6 B625 FD48 B509 A3DE 8D79 541F F830