mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
Undo wrong change. Sorry
@@ -15,7 +15,7 @@ echo $n
|
||||
```bash
|
||||
# Bash specific: process substitution. Also try shopts like lastpipe.
|
||||
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
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user