Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gsh reset error getcwd: cannot access parent directories #57

Closed
duthils opened this issue Jun 27, 2021 · 1 comment
Closed

gsh reset error getcwd: cannot access parent directories #57

duthils opened this issue Jun 27, 2021 · 1 comment

Comments

@duthils
Copy link

duthils commented Jun 27, 2021

Scenario

Given I start mission 4
Given I create a Hut inside the Forest
Given I go to the Hut
Given I create a Chest inside the Hut
When I enter gsh reset
Then I see errors:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory                                                                                                 
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
...

Expected: mission 4 is reset

Here is the list of commands:

cd Forest/
mkdir Hut
cd Hut
mkdir Chest
gsh reset

Environment

  • Archlinux
  • GNU bash, version 5.1.8(1)-release (x86_64-pc-linux-gnu)
@phyver
Copy link
Owner

phyver commented Jun 28, 2021

Good catch. The gsh reset was removing the Hut / Chest you had created.

b2fec22 should fix this.

I now check $PWD doesn't contain the Hut / Chest. If it does, I cd ~ before removing the Hut / Chest.

@phyver phyver closed this as completed Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants