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 @@
|
||||
|
||||
- Verifica se una determinata variabile è uguale/diversa dalla stringa specificata:
|
||||
|
||||
`[ "${{variabile}}" {{==|!=}} "{{stringa}}" ]`
|
||||
`[ "${{variabile}}" {{=|!=}} "{{stringa}}" ]`
|
||||
|
||||
- Verifica se una variabile data è [eq]uguale/[n]on [e]uguale/[g]maggiore [t]di/[l]minore [t]di/[g]maggiore di o [e]uguale/[l]minore di o [e]uguale al numero specificato:
|
||||
|
||||
|
Reference in New Issue
Block a user