ls and cd commands #30

Closed
wants to merge 2 commits into
from

Projects

None yet

2 participants

@rustyoz
Contributor
rustyoz commented Apr 19, 2012

starting working on a file browser and decided that a few extra commands and the bash could be used as one kind of

@chessmaster42
Member

You were working on part of the same thing I was working on. My recent commit will have broken most of your code but I'm working on getting all of the directory changing code in. I had intended on doing it next then I saw your pull request after I had already committed my code >.>

@rustyoz
Contributor
rustyoz commented Apr 20, 2012

yeah from what you have added, it allows for a lot more. it's a problem though if two people are working on the same thing. the cd code shouldn't be that hard to work in you should be able to use most of your ls command code

@rustyoz
Contributor
rustyoz commented Apr 20, 2012

for the directory changing, i had the idea of having a buffer/tree of folder locations so that as you move down through a folder each, the directory is added to the buffer. When changing back, the prompt would simply move back up the tree. although displaying the directories before the prompt would make the shell need to find the name of each folder and print it out, this could be calculated once for each directory change and stored somewhere though.

@chessmaster42
Member

Yeah, the idea I have in mind is to keep the present working directory then have a directory stack. And I have most of your cd code done. Just working on the cd .. part and the directory stack now.

@chessmaster42 chessmaster42 added a commit that closed this pull request Apr 20, 2012
@chessmaster42 chessmaster42 Moved directory stuff over to the shell
Fixed #30 using bungao's pull request code and the new filesystem code
Added a directory stack to keep track of the directory path
769769a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment