4 ms·
Because the =~ and > and < operators aren't defined for [ in POSIX. Also ShellCheck suggests similar improvement only when your shebang says that bash is the e
by hashhar 5y ago
Because the =~ and > and < operators aren't defined for [ in POSIX.
Also ShellCheck suggests similar improvement only when your shebang says that bash is the expected interpreter instead of sh (or other ways of denoting POSIX compat).