You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a bug in sh. It's also a really hacky part of sh, as the comment in https://github.com/amoffat/sh/blob/develop/sh.py#L3564 indicates. Basically, the problem is that inspect.stack() only returns the line containing sh2 = sh(...\n, not the entire statement in the following lines. This leads us to evaluate a non-complete code snippet.
Thanks @ecederstrand! Yeah, thought it might have to do with newlines in the dict literal. sh is great! And this bug is not a big issue, as we can work around it with the dict constructor if we wanted to pass in a large environment split over many lines. Thanks again!
The following
gives
The text was updated successfully, but these errors were encountered: