2 ms·
You can use an uncaptured subprocess to run a command explicitly in bash mode. I'm unsure how you think xonsh would break a bash script, though. When you run a
by sciurus 12y ago
You can use an uncaptured subprocess to run a command explicitly in bash mode. I'm unsure how you think xonsh would break a bash script, though. When you run a script in xonsh it's still going to be interpreted by whatever is declared in the script's shebang. Just like you can run a perl script from bash, you can run a bash script from xonsh. E.G.
$ ls='foo'
$ cat test.sh
#!/bin/bash
ls ~
$ print(ls)
foo
$ ./test.sh
bin C:\nppdf32Log\debuglog.txt foo initrd.img.old lost+found opt run sys var
boot dev home lib media proc sbin tmp vmlinuz
cdrom etc initrd.img lib64 mnt root srv usr vmlinuz.old
- ridiculous_fish 12y agoThe stuff that gets broken are bash scripts that are designed to be sourced directly: virtualenv, rbenv, various prompts, etc.