databio / bulker

Manager for multi-container computing environments
https://bulker.io
BSD 2-Clause "Simplified" License
24 stars 2 forks source link

Bulker 'shell_prompt' adds slashes when its loaded #46

Closed nsheff closed 3 years ago

nsheff commented 4 years ago

It's adding new slashes when it reads in any string with backslashes. Caused by a problem in attmap/yacman:

https://github.com/databio/yacman/issues/32

So for now the solution is to just remove the custom 'shell_prompt".

Originally posted by @nsheff in https://github.com/databio/bulker/issues/44#issuecomment-602650372

nsheff commented 3 years ago

I think this was actually a python issue -- the solution is to use single-quoted strings for bulker prompts, so that escaped chars are not re-escaped at parsing.

I've now successfully tested lots of custom shell prompts and added new docs to explain.