2 ms·
Right now, I use osh interactively in a very bash compatible mode. Then at the top of my scripts I put this if I still want to run with bash: shopt -s str
by chubot 6y ago
Right now, I use osh interactively in a very bash compatible mode.
Then at the top of my scripts I put this if I still want to run with bash:
shopt -s strict:all 2>/dev/null || true
Or this if I don't need to run with bash anymore:
shopt --set oil:basic
Example: https://github.com/oilshell/oil/blob/master/test/spec.sh#L9 https://github.com/oilshell/oil/blob/master/test/spec.sh#L9
docs in progress: https://www.oilshell.org/release/0.8.3/doc/oil-options.html https://www.oilshell.org/release/0.8.3/doc/oil-options.html
Having the OSH runtime exist everywhere is something we should work on: https://github.com/oilshell/oil/issues/463 https://github.com/oilshell/oil/issues/463