Updated SC2268 (markdown)

Mingye Wang
2021-04-12 19:10:13 +08:00
parent ddb574ef5c
commit 539f4fd26f

@@ -26,13 +26,17 @@ POSIX ensures [this is not necessary](https://pubs.opengroup.org/onlinepubs/9699
Bash 1.14 from 1992 incorrectly fails this test. This was fixed for Bash 2.0 in 1996:
```sh
var='!'
[ "$var" = "!" ]
```
Dash 0.5.4 from 2007 incorrectly passes this test. This was fixed for Dash 0.5.5 in 2008:
```sh
x='(' y=')'
[ "$x" = "$y" ]
```
Zsh (while not supported by ShellCheck) fixed the same problem in 2015.