Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#9 implement pushd/popd

open
nobody
None
5
2013-01-03
2009-06-25
Anonymous
No

pushd/popd are completed automatically, but they don't work in pycmd.

Discussion

  • juntalis
    juntalis
    2012-12-24

    Just noticed this one recently. (Never really had any need to use pushd or popd outside of a batch script, which would've been executed by cmd.exe if run in PyCmd) Is there any reason this couldn't just be implemented as an internal command, maintaining a stack of folders with a list (Like the DirectoryHistory class does now), and just facilitating a call to the existing internal implementation of chdir?

     
  • Horea Haitonic
    Horea Haitonic
    2013-01-03

    Implementing the simple case is trivial, of course. But due to the fact that PyCmd doesn't really parse or execute commands but dispatches them to cmd.exe (same old problem...), handling e.g. compound commands like "make && (if exist hello.exe popd) && make clean" is virtually impossible. And since "partial" support is usually confusing, I thought it's best to call this "unsupported".