Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15348
| From | YAMAGUCHI Takanori <t-yama@iij.ad.jp> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | arithmetic expression from outside |
| Date | 2019-09-05 17:40 +0900 |
| Message-ID | <mailman.420.1567687701.2075.bug-bash@gnu.org> (permalink) |
| References | <f1159f8a-741a-9c65-53be-bb29f223a2e4@iij.ad.jp> |
Is this an intended behaviour? % cat sum.sh sum=0 while read n; do sum=$((sum+n)) done echo $sum % seq 10 | bash sum.sh 55 % yes ++sum | head -10 | bash sum.sh 1023 % echo 'x[$(echo Hello, world!>&2)]' | bash sum.sh Hello, world! 0 % bash -c 'echo $BASH_VERSION' 5.0.9(0)-release
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
arithmetic expression from outside YAMAGUCHI Takanori <t-yama@iij.ad.jp> - 2019-09-05 17:40 +0900
csiph-web