Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Very weird shell & sysread behavior
- X-seq: zsh-workers 43734
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Very weird shell & sysread behavior
- Date: Sat, 27 Oct 2018 22:22:44 -0700
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WUIYx1y1/sKb1ABEAZflqry+aNo5nFilcuJVs+UzQsI=; b=V8pnYouy4RJ9PAhph7PnJSSgTU2ZPpvirolnIoK9hv1HzWhFFhDU6VQzMVfNnoxmnb C+xt+MTF1jtSZFPPNs3YYy10OeWUhjUxVBXZaMaKxLHQ8Mog/nXasSwMJG3CryDM+JeJ CoL/FhB60D30jsVSMNhUbVSR48sPZBChdeVip/PsUoez0D7tW8aEmugQPEAdbRGW1ImD QGSqqL/xU9PudfDAr7og3bo93o79wy2a+OGjsN4C6BfwE2qmsy0FPikl5k0n4nu+r0v9 3O3NepGds3DH7DkWrEF7WEhdstwrmuyBoKT6l7sg0zXQUYx68/Gv1XLxpT4Og/G6G4nP /k8A==
- In-reply-to: <CAKc7PVDuMsRWiW53gf5yki_NPcOrqVC=2zHJNGH-Je2b312jDQ@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
- References: <CAKc7PVBzb-7Hc0p6wBSmS8mTitnXo7X6j+m3_7QvRV1NgRnz1w@mail.gmail.com> <CAKc7PVDuMsRWiW53gf5yki_NPcOrqVC=2zHJNGH-Je2b312jDQ@mail.gmail.com>
On Sat, Oct 27, 2018 at 1:53 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> Turned out the tricky output-parameter specifier, the '__tmp[(#__tmp +
> 1)]' isn't correct. Apparently because #__tmp in math context is
> character-code. Regular __tmp_size variable and '__tmp[__tmp_size +
> 1]' works correctly, even when the data is printed in two print -r
> instructions, not as the single string.
You could also do __tmp[$#__tmp+1] if you want to avoid the extra variable.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author