mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Undo wrong change. Sorry
@@ -15,7 +15,7 @@ echo $n
|
|||||||
```bash
|
```bash
|
||||||
# Bash specific: process substitution. Also try shopts like lastpipe.
|
# Bash specific: process substitution. Also try shopts like lastpipe.
|
||||||
n=0
|
n=0
|
||||||
while read i; do (( n+=i )); done < "$(printf "%s\n" {1..10})"
|
while read i; do (( n+=i )); done < <(printf "%s\n" {1..10})
|
||||||
echo $n
|
echo $n
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user