0x10cAtlas / AtlasOS

An operating system for DCPU-16.
109 stars 15 forks source link

ls and cd commands #30

Closed rustyoz closed 12 years ago

rustyoz commented 12 years ago

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

chessmaster42 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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.