[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: seq 0 0 0
From: |
Pádraig Brady |
Subject: |
Re: seq 0 0 0 |
Date: |
Thu, 11 Dec 2014 14:25:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
On 11/12/14 14:04, Rasmus Borup Hansen wrote:
> I just noticed that the command "seq 0 0 0" produces infinitely many lines of
> zeros. Is this intentional? I was expecting only a single one. I'm using 8.21
> on Ubuntu 14.04.
I'm not sure a single line would be appropriate.
It would either be all or none, right?
The info docs say: "The sequence of numbers ends when the sum of
the current number and INCREMENT would become greater than LAST"
So the output is consistent with that at least.
I notice that the FreeBSD version of seq exits with an error
for an increment of 0.
cheers,
Pádraig.
- seq 0 0 0, Rasmus Borup Hansen, 2014/12/11
- Re: seq 0 0 0,
Pádraig Brady <=