mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Partial revert of previous change
@@ -3,13 +3,13 @@
|
|||||||
### Problematic code:
|
### Problematic code:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
string="string" ; echo "$string" | sed -e "s/ir/ri/"
|
string="stirng" ; echo "$string" | sed -e "s/ir/ri/"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Correct code:
|
### Correct code:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
string="string" ; echo "${string//ir/ri}"
|
string="stirng" ; echo "${string//ir/ri}"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Rationale:
|
### Rationale:
|
||||||
|
Reference in New Issue
Block a user