-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Multi-mode support, Bash support, Zsh support, Fish support #191
Comments
Now needed to better support koalaman/shellcheck#3008 |
Morbig was initially written in the context of the CoLiS project that targeted Debian maintainer scripts, the huge majority of which are indeed written in POSIX Shell, mainly for performance reasons ( Of course, that doesn't mean that it shouldn't evolve beyond that, and it is fairly natural to want to consider classic Shell extensions —
|
I would like to hear from the experience of the shell-check developers, personally. There are many different possible outcomes depending on their experiences, and they do have much broader support of shells. |
That would be very interesting indeed! |
Related to #192, it appears that Shellcheck has much of the same infrastructure of Morbig. I believe a sane course of action could be to develop a version 2 using Shellcheck's infrastructure and then to extend features based on their already built out support for desired features. |
If Morbig can be made extensible while also keeping the guarantee that it is as close to the POSIX standard as possible, that would be amazing. I do agree that drawing inspiration from Shellcheck would make sense. Still, lot of work! |
It requires more technical skill than I currently possess. I'm also
wondering if MORBIG hasn't been outright superceded by Shell-Check, which
is a very real possibility. I believe it is worth considering redirecting
traffic to Shell-Check given how much more lively development is there, and
the wider shell support. There would need to be a small transition guide,
but it might ultimately serve users better.
Anyways, I'm mentally loaded. I'm working on a LLM final project.
…On Sun, Aug 25, 2024, 6:27 AM Nicolas Jeannerod ***@***.***> wrote:
If Morbig can be made extensible while also keeping the guarantee that it
is as close to the POSIX standard as possible, that would be amazing. I do
agree that drawing inspiration from Shellcheck would make sense. Still, lot
of work!
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXYEBL7GTJMHLZMRPQ6ERDZTGWR5AVCNFSM6AAAAABJ4HDQ3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYG43DSMJRGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I don't think that Morbig has been superseeded by ShellCheck. These two pieces of software do not serve the same purpose at all:
In principle, it is possible to get the best of both worlds, but I don't think Morbig is anywhere near that (and this has never been our intent in the past, and there is no time or energy presently to tackle this) and the last times I followed ShellCheck it was also really not there yet either, and I doubt they would be interested in spending much work to support very particular grammatical peculiarities of the POSIX Shell. It could be worth linking to ShellCheck in the README as a related tool though, indeed. |
Agreed. Time and energy.
…On Sun, Aug 25, 2024, 6:26 PM Nicolas Jeannerod ***@***.***> wrote:
I don't think that Morbig has been superseeded by ShellCheck. These two
pieces of software do not serve the same purpose at all:
- Morbig has been designed from the get-go to provide a static parser
for POSIX Shell that could be as trustworthy as possible when it comes to
respecting the standard. This was meant as a basis for static analysis
tools.
- ShellCheck, on the other hand, does not care that much about
compatibility with the standard, and is more focused on wide Shell support
and extensibility. Bugs in the grammar support are unimportant as long as
the reports to the users are relevant.
In principle, it is possible to get the best of both worlds, but I don't
think Morbig is anywhere near that (and this has never been our intent in
the past, and there is no time or energy presently to tackle this) and the
last times I followed ShellCheck it was also really not there yet either,
and I doubt they would be interested in spending much work to support very
particular grammatical peculiarities of the POSIX Shell.
It could be worth linking to ShellCheck in the README as a related tool
though, indeed.
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXYEBJBHWZEKDP7TTV4FBDZTJK2HAVCNFSM6AAAAABJ4HDQ3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBZGAYTQMJRGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Few contemporary scripts are written to conform to the POSIX standard. Many more are written to conform to
bash
,zsh
, orfish
. Of these,bash
is particularly important. I'd like to see feature development to have multiple shells supported, but I'm not sure if I have the language skill level or project specific knowledge to work on these features. However, my own project requires such support and without it is basically dead.The text was updated successfully, but these errors were encountered: