shellcheck icon indicating copy to clipboard operation
shellcheck copied to clipboard

Request: Oil Shell support

Open mcandre opened this issue 3 months ago • 1 comments

Hi!

Can we please add support for the osh interpreter from Oil Shell?

https://oils.pub/

#!/usr/bin/env osh, #!/usr/bin/env oil, the .osh file extension, and the oshrc, oilshrc configuration filenames, all indicate Oil Shell the osh (A.K.A oil) shell implementation language.

The ysh interpreter, .ysh file extension, and yshrc configuration filename indicate Oil Shell ysh, which is not a POSIX family language.

mcandre avatar Oct 12 '25 19:10 mcandre

Looking at the 2023 FAQ.

It runs POSIX shell and bash scripts, almost always without modification.

Sounds like OSH could be a alias for any POSIX shell then? Might be doable for someone, propose a PR?

bin/ysh. It's a new shell language designed from scratch.

This sounds like it falls way outside the shellcheck project boundaries.

If someone tries to add any of these they probably should split it into two different tasks.

brother avatar Oct 13 '25 13:10 brother