You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a snippet or screenshot that shows the problem:
#!/bin/bash# or#!/bin/ksh
[ !-a /bin/sh ]
echo$?
Here's what shellcheck currently says:
nothing
Here's what I wanted or expected to see:
A warning is issued against [ ! -a p ] since it is not well-defined.
Actually, bash 5.2.37 and ksh 2020.0.0 give different results: 0 and 1, respectively. It seems that bash performs
For bugs
shellcheck --version
or 'online'): onlineFor new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
nothing
Here's what I wanted or expected to see:
A warning is issued against
[ ! -a p ]
since it is not well-defined.Actually, bash 5.2.37 and ksh 2020.0.0 give different results: 0 and 1, respectively. It seems that bash performs
whereas ksh does
The text was updated successfully, but these errors were encountered: