Skip to content

Shell linter ignores nonextant and unreadable files #969

@sckendall2

Description

@sckendall2

Example:

$ ksh -n /no/such; print $?
0
$ touch a.ksh
$ chmod 0 a.ksh
$ ksh -n a.ksh; print $?   
0

I see this behavior in every version of ksh93 including 1.0.10.

So if you misspell the name of your script, then it gets a clean bill of health! The behavior I expect is a sensible error message and a nonzero exit status.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions