Nicholas Burlett wrote: > I'm attempting to convert a bash idom into fish, and I can't quite > figure out a clean way to do it. In bash, I sometimes used: > > (cd /home/path/to/checkout ; svn diff checkout/path/file.c) | patch -p0 > > The closest I can come to this in fish is: > > begin pushd /home/path/to/checkout ; svn diff checkout/path/file.c; > popd; end | patch -p0 > > Is there a better way?
I wish there was; unfortunately, `env` can't change the current directory, only actual environment variables. do I recall a `cd --local/-l` ? was that ever figured out and implemented? then it could be begin cd -l /home/path/to/checkout ; svn diff checkout/path/file.c ; end | patch -p0 -Isaac ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
