Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: broken random variable
- X-seq: zsh-workers 44853
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Roman Perepelitsa" <roman.perepelitsa@xxxxxxxxx>, ". ." <apatiskogen@xxxxxxxxxx>
- Subject: Re: broken random variable
- Date: Sat, 19 Oct 2019 06:09:06 +0000
- Cc: "Zsh hackers list" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:cc:subject:content-type; s=fm1; bh=lq+D PcPlP8CkvZY0lHq2glhFxe9OPZXerZDPGGqbYgc=; b=mT9RYcFniQ1Hngok26rN MiwXHBDJO100UVLuNhnQZ1ndvxR7FJq52ISLOPJQfth/HAjgiuXGOl7QPobttJjf sYrM9mdfBFr8kgH4ymkjXgXigg13tkZoh5ojjh5T7pGL2LGSm0/NbUPiBwOH0qR0 95kg4Q4rsHvMM9aV043whUqogjJpsti0mEGb54zJWLHnkICRsRCGSmWNAKS+qaJV Sp/mtbnazXrIEcP1n2udlkid9yriykbp4pLjRhlCt+ChEPIpChdwlOHHw+a4R0BG dadlnXa37Ewti4ahqIEsNQq9pHUn1oViYBxsHDXQNlYMsW2W8/WMsqaIgjHhunvM sA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=lq+DPc PlP8CkvZY0lHq2glhFxe9OPZXerZDPGGqbYgc=; b=GbJIVyl15GAZCpILTbHUXg ruXZMSZLGevHT25RmGxmMb1/L5nUUfD2Y9QinQtlilytWqRRi8VRPeYnbbkJXUQr Ere2vaRvMxP+4AIorFetCEQQ6OJFwMiqqowaQtZZzzE8RWKp/dqM+cfEqn/zypPP HX4SASubYdj8GivaOIwTefZFZPpVeDsmaKzbJK2ho+1gbjXCLrkN+40qhn8NcQKh K9//dwr2scDBjt9N9H3IRbbM//U4iwnQ6B515pJv7WPx17j32b+/QEC26fKyNOP1 8oR7rLwQBndUncqPK+nNyTONPTn0IoENcIg5q3RQYLd5LCgMX1fNvBr/zydcTb2Q ==
- In-reply-to: <CAN=4vMpkANr-K6zcxtVTa95-ip08+c=pDwEcKP7Tt7JufNr1NQ@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: <8724321571463531@myt3-a2a42ac8caa6.qloud-c.yandex.net> <CAN=4vMpkANr-K6zcxtVTa95-ip08+c=pDwEcKP7Tt7JufNr1NQ@mail.gmail.com>
Roman Perepelitsa wrote on Sat, 19 Oct 2019 05:44 +00:00:
> Simpler test case:
>
> repeat 2 ( echo $RANDOM )
>
> Prints the same number twice. Tested on FreeBSD and Linux.
Yes, it's documented to behave this way.
man zshall | less -p RANDOM
Messages sorted by:
Reverse Date,
Date,
Thread,
Author