Gabriella439 / turtle

Shell programming, Haskell style
BSD 3-Clause "New" or "Revised" License
943 stars 90 forks source link

cd from ghci doesn't affect path completion #406

Closed L-as closed 3 years ago

L-as commented 3 years ago

I.e. typing "./<tab> from doesn't show paths from the directory I changed to, but from the directory ghci was started in. I'm not sure this is a problem with turtle, but perhaps there is some fix?

Gabriella439 commented 3 years ago

That is a ghci-specific issue. The turtle package cannot control ghci's support for auto-completion

L-as commented 3 years ago

Thank you for the response. It is indeed just an odd ghci issue, specifically, /proc/self/cwd when read from outside the repl in ghci doesn't seem to be affected by changing the directory inside the repl (even though when read from inside the repl /proc/self/cwd will be changed)