Skip to content

v0.9.0

Choose a tag to compare

@elazar elazar released this 01 Nov 18:19
· 5 commits to main since this release

What's Changed

馃敡 Fixed

  • CRITICAL: Fixed incorrect implementation of bash history expansion fix from v0.8.0. The previous fix wrapped bash +H -c commands in an additional sh -c layer, which defeated the purpose because the outer shell still interpreted ! before passing to bash. Commands with sudo now correctly use bash +H -c as the outer shell wrapper, ensuring history expansion is disabled throughout the command execution chain. This fixes "command not found" errors when using ! (logical negation) in commands with _sudo=True.

What This Fixes

Problem in v0.8.0:

orbctl run -m vm-name sh -c "sudo -H bash +H -c '! test -e /file'"
# Result: "!: command not found" because sh processes ! before bash

Fixed in v0.9.0:

orbctl run -m vm-name bash +H -c "sudo -H bash +H -c '! test -e /file'"
# Result: Works correctly, history expansion disabled throughout

Installation

pip install pyinfra-orbstack==0.9.0
# or
uv pip install pyinfra-orbstack==0.9.0