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:
Gabe Livengood
2023-12-14 10:01:13 -05:00
committed by GitHub
parent 5978942629
commit 9d865abee1
17 changed files with 17 additions and 17 deletions

View File

@@ -6,7 +6,7 @@
- بررسی میکند که آیا یک متغییر با رشته معین برابر است یا نابرابر :
`[ "${{متغییر}}" {{==|!=}} "{{رشته}}" ]`
`[ "${{متغییر}}" {{=|!=}} "{{رشته}}" ]`
- اینکه متغییری برابر/ نابرابر/ بزرگتر از/ کوچکتر از/ برابر یا بزرگتر/ کوچکتر یا برابر با عددی است را بررسی میکند :