Skip to content
New issue

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

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

Already on GitHub? # to your account

PWD var is not updated on Linux leading to unexpected behavior #2448

Closed
Oldes opened this issue Feb 22, 2021 · 0 comments
Closed

PWD var is not updated on Linux leading to unexpected behavior #2448

Oldes opened this issue Feb 22, 2021 · 0 comments

Comments

@Oldes
Copy link
Owner

Oldes commented Feb 22, 2021

Found in Red, but it's same in Rebol:

; all same at start...
>> pwd
== %/home/oldes/GIT/Rebol/

>> call/output/wait/shell "echo $PWD" s: "" trim/tail s
== "/home/oldes/GIT/Rebol"

>> get-env "PWD"                              
== "/home/oldes/GIT/Rebol"

;  but after changing directory...
>> cd ..
== %/home/oldes/GIT/

>> pwd
== %/home/oldes/GIT/

>> call/output/wait/shell "echo $PWD" s: "" trim/tail s 
== "/home/oldes/GIT"

>> get-env "PWD" 
== "/home/oldes/GIT/Rebol" ;<-- no change
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant