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

Using the functions directly changes callers directory #12

Open
mikepqr opened this issue Jan 26, 2017 · 0 comments
Open

Using the functions directly changes callers directory #12

mikepqr opened this issue Jan 26, 2017 · 0 comments

Comments

@mikepqr
Copy link
Owner

mikepqr commented Jan 26, 2017

If you source the script then run the functions directly, stowsh can change the directory of the caller. This is bad.

When run as a regular script the cds all run in a subshell so do no harm.

Protect all the cds with subshells or get rid of them.

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

1 participant