Permalink
Please sign in to comment.
Browse files
Fix bugs in pushd / popd / dirs.
The stack was printed in the reverse order. Until the last commit, the spec tests didn't expose this. Printing os.getcwd() in 'dirs' isn't correct. The correct semantics are that the dir_stack is initialized to the current directory, and it is reset upon the 'cd' builtin. popd fails if the stack is of length 1. Tests all pass now.
- Loading branch information...
Showing
with
19 additions
and 15 deletions.
- +17 −13 core/builtin.py
- +2 −2 core/cmd_exec.py
0 comments on commit
87f1f86