Hi, inspired by https://www.mail-archive.com/skaware@list.skarnet.org/msg00925.html
I wrote a recursive nearly one liner https://github.com/v217/recursive_execlineb_which_maintains_cwd_rlwrapper a recursive interactive execlineb shell which maintains state this includes the cwd. I would be happy to hear your critical opinions - code review, especially howto minimize env polluting. Thanks, Vincent