Menu

#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".

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.