test
: Use POSIX-compliant example for equals comparison (#11728)
* [: use posix-compliant example for equals comparison the previous example worked fine for bash, but some other shells (zsh, in my case) will not work when using "==" for comparison. the posix spec only requires "=", so I think it makes a little more sense to use that in the example. * test: use posix-compliant example for equals comparison the previous example worked fine for bash, but some other shells (zsh, in my case) will not work when using "==" for comparison. the posix spec only requires "=", so I think it makes a little more sense to use that in the example.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
- 주어진 변수가 문자열과 같은지/다른지 비교:
|
||||
|
||||
`[ "${{변수}}" {{==|!=}} "{{문자열}}" ]`
|
||||
`[ "${{변수}}" {{=|!=}} "{{문자열}}" ]`
|
||||
|
||||
- 주어진 변수가 주어진 숫자와 같은지[eq]/다른지[ne]/보다 큰지[gt]/보다 작은지[lt]/크거나 같은지[ge]/작거나 같은지[le] 비교:
|
||||
|
||||
|
Reference in New Issue
Block a user