Skip to content

Instantly share code, notes, and snippets.

@amotl
Created July 17, 2025 10:48
Show Gist options
  • Select an option

  • Save amotl/8e0db5d6aa49dde55f4419ecc278fd33 to your computer and use it in GitHub Desktop.

Select an option

Save amotl/8e0db5d6aa49dde55f4419ecc278fd33 to your computer and use it in GitHub Desktop.
Evaluate `source-bash` of xonsh
TESTDRIVE=foobar
#!/usr/bin/env xonsh
# Evaluate the `source-bash` built-in alias of xonsh.
# https://xon.sh/aliases.html#source-bash
source-bash demo.env
echo $TESTDRIVE
@amotl
Copy link
Author

amotl commented Jul 17, 2025

$ xonsh --version
xonsh/0.19.9

@amotl
Copy link
Author

amotl commented Jul 17, 2025

Currently, the procedure is not working well for us. Are we doing anything wrong?

$ xonsh demo.xsh
$TESTDRIVE

We created a ticket about it over here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment