-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Description
Code editor
Sublime Text
Platform
Windows, Linux
Version
5.0.0
What steps will reproduce the bug?
The following script raises a shellcheck warning on the "set" line:
#!/bin/sh
# shellcheck shell=ash
set -euxo pipefailHowever it should not because I explicitly defined the shell to eliminate the warning.
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
I would expect the shell directive to be taken into account, so no warning should appear on the "set" line
What do you see instead?
The shell directive is ignored
Additional information
I suspect that the problem is caused by the LSP language server passing the --shell option to the command-line which have the priority over the shell directive defined in my script file. But, AFAIK, there's no way to change/remove the value of the --shell option, right?
Metadata
Metadata
Assignees
Labels
No labels