Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: arithmetic expression from outside
- X-seq: zsh-workers 44734
- From: YAMAGUCHI Takanori <t-yama@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: arithmetic expression from outside
- Date: Fri, 6 Sep 2019 14:48:22 +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
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1;a=rsa-sha256;c=relaxed/simple;d=iij.ad.jp;h=Subject:To:Cc: References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type: Content-Transfer-Encoding;i=t-yama@xxxxxxxxx;s=omgo2;t=1567748905;x= 1568958505;bh=KupA3PvfbY3A5LBBEQQjBrt/ixaWvaAt5sAn18WgjyE=;b=Im9XKuNEsdCy+FVm eZ8+qn4WeOaO34cooON0A+n4zfKqKhSLTPw/R7ls1dIfo7HeaEbGLeqfx/CNPaaOZtKq3zSdub9WJ RbzRgF4Uxyc9kIyDGzKUK0KTTAVQ9yUsj7ikBLehL89HPTRYQVrbgHqxQBbGNPKs+sz3/Hk7dYswK 0Nx3udxUCTLdpG+Np8MtSiXIbYLFzsZaCFWne6fzDAOSc8A4eaWi9VGzTzntumKruyVSdwTlsW8Hf f2h+6pEGjFcMv0V1w8P5FLuPmiRnDBG3TabrywoHTr7L/yvcfLJ5lXTJh7jDJUvpV3wYKQkpQ0ud6 YhdAlRF7ngsnfhskyg==;
- In-reply-to: <CAH+w=7a_Av6w58cMXOw8CoOunAAfr--xnWHis8i6woHDphwH6A@mail.gmail.com>
- 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
- References: <69f3c9f0-b91b-beb1-d36c-854bb4eb3ff3@iij.ad.jp> <CAH+w=7a_Av6w58cMXOw8CoOunAAfr--xnWHis8i6woHDphwH6A@mail.gmail.com>
This behaviour looks to be unsafe.
I wish it had a feature to disable the recursive evaluation
of an arithmetic expression. Or at least zshmisc manpage
should be added the warning not to use unchecked input
in an arithmetic expression context.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author