Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
arithmetic expression from outside
- X-seq: zsh-workers 44729
- From: YAMAGUCHI Takanori <t-yama@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: arithmetic expression from outside
- Date: Thu, 5 Sep 2019 17:49:31 +0900
- Autocrypt: addr=t-yama@xxxxxxxxx; keydata= mQENBFuRyjIBCADZg20vhEjhGPFSLnkI2BmitQueJOGgNkFQ6wqDLXY8W5IBdwVy+RSP3WoY DydeQtd4FwtNIlUVUNUK6cWtTpEIG57zI2upAgCHKJqVaJUNEnleAn5l2ySMFNqyvp9weOHr 1YKcRSGphv8g1yGrHd77enF8WyqMQ5FAbC+tsSclA+wM3scBeHtEBTps6vJiK9gPEbmYazbC xrB0cixYb2eAwfQlUQbiLlXhYsYAB7B2LwjW9xp4LpuzQ28dTf2VtM88MySPQbTs2sIE0UNH LhjtfllOdA1eE2QKddA2cvuAgJtnZN5ogsO0VeJ0gW+MgxGodrHHRzwx4RZnY7FhrbetABEB AAG0JVlBTUFHVUNISSBUYWthbm9yaSA8dC15YW1hQGlpai5hZC5qcD6JAVQEEwEIAD4WIQQE /KPGqyRZZnoPeZ3f1TN0neS21QUCW5HKNQIbAwUJAeEzgAULCQgHAgYVCgkICwIEFgIDAQIe AQIXgAAKCRDf1TN0neS21XMZB/0d+zpPtBxGOayfVzmWFhf/mybiPRCM1xcKVF76ivTolc0W ZjtRzp3Nk2KwYbNA4kiVgiFYPE6IWvn4oGZcxovXmGKgT5live67tXTjRYFWAN5c7VS+7Ual XFNyA7MeY1i+qvN5NVnjlW5TVzRz+Kifk5YuVowtTFoRHjHX/GW29IUXhjq0sYqBekVvSz6O rUjIKx/k3bYRa0xDsC8AFNIOtT5EVA+XdCealTBdk69zQXQn9AwIpBijFCgrss0m3Mir49m+ cP8JumoSqZWQoQCzVdqqfnWi2M4CrFQRJ7imENX7cahQdLrUI8l7o4cb/moF5AXAA0fQys7F d6mWaJSNuQENBFuRyjMBCADA43hZ8E+++EGqFoyXgCy58HPDJcuLmuFGWT/11ogTUo/u3n+U dJMW8N+6IhP+822+/PAaF9rOjvifFQ2PPaJHqin5qkPszlaEXxz0zMO4fIUpGk3A5tpax8rY mA/h2MAMlA9Pn+pTdPXHmgnWopTmU6jFb7vBhyGHa9pXRYYH/aWRWNYsMykjvwuI9xlB6cDW IhJRznCEhRfxRHD4MrIfqSgGfbtSR5yA61o4CsQvuqqxPEmDdJd2cZmxlomUiiz8WnSC0T7A vYrxlMO/+R5/zLBrBKswUNHftCcmC06cp2HYgfZJryP3dVcW7H5CDTIbT96yjfaoOxaI0rZe FfzJABEBAAGJATwEGAEIACYWIQQE/KPGqyRZZnoPeZ3f1TN0neS21QUCW5HKMwIbDAUJAeEz gAAKCRDf1TN0neS21Xv2B/0YELAKbotd+EskmWWsbkSjjZrT/58nO2pNRHLlPtnz3nIuLA4Q J3e1b3wNT0MM3VJ/wwcFBTPyHAwMjk8Ws5/6aLiAjXhUJ1devpL5UfHbw0jX/GjJGn3QFWiH yjH7ZE3XjXdO6lVi+7JVJkeHPOAwO6x0IHYGj79aMDd3xBJl1Gij9LDFUk4btU6a4+BZ0alM xykgXLHoNjUyLYktucRGUYU5NT2nt3z7cW2QGpNe9icnsQTYI12nedPwA5FYoLx3RofOry+7 rcwypHzL995ABZPItK8NFXBZS+0zpNMED/LmUWMOjptItrsNzkt0IWvWgirce3YH0khSANTi H1aM
- Dkim-signature: v=1;a=rsa-sha256;c=relaxed/simple;d=iij.ad.jp;h=To:From: Subject:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; i=t-yama@xxxxxxxxx;s=omgo2;t=1567673373;x=1568882973;bh=K7yJIoX9qpNndQIP8v6Dd KbZE+ShJ6mujQqBJhr9vqY=;b=JjRLe+wJrEdHbrSPS4ZrF/7yWWoKsWYp7gmYQUfG+qQwHc6lxFo ypdIYH70e0btUPSyXYdBVVLqlaXhdI0e4gZtTvcD9X6HT5b5csl44k4/FpxlpLN90AhyY189hdbZc 49pJ4RXjYDoPm7MKIiiKz5wVcecIqe4FV/FgZieDqs445PDv5/bzmQzb1eb0e3ikfbhstsx5zYYay w++zSqSGS6QZLIIVXxc0kPvZwMqgT6c3q8ubZJX8NbNVW+DhIHG3P8+CZX+XkIhM9mjo3Yq3eSiei 8me3OPq6Oy2Hf8WIBf48QFRfzWQR1UvYhbi09wzREWyzQzzWic4XmnhPPLlQ==;
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Openpgp: preference=signencrypt
Is this an intended behaviour?
% cat sum.sh
sum=0
while read n; do
sum=$((sum+n))
done
echo $sum
% seq 10 | zsh sum.sh
55
% yes ++sum | head -10 | zsh sum.sh
2046
% echo 'sum[$(echo Hello, world!>&2)]' | zsh sum.sh
Hello, world!
sum.sh:3: bad math expression: empty string
% zsh -c 'echo $ZSH_VERSION'
5.5.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author