Skip to content

Conversation

AlReka
Copy link

@AlReka AlReka commented May 19, 2023

@realtime-neil
Copy link
Contributor

realtime-neil commented May 19, 2023

That's not the "previous" directory. That's the parent directory.

You can change to the previous directory by

cd -
-

When a <hyphen-minus> is used as the operand, this shall be equivalent to the command:

    cd "$OLDPWD" && pwd

which changes to the previous working directory and then writes its name.

-- https://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html

@megastep
Copy link
Owner

It might be a good idea to add a unit test for the cleanup script too.

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

Successfully merging this pull request may close these issues.

3 participants