[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strange jot behaviour
Try the following:
$ jot -sx " " 5
1 2 3 4 5
$ jot -sx " " 5 1 5
1 2 3 4 5
$ jot -sx ", " 5 1 100
1, 26, 50, 75, 100
The first problemm is that the -s switch is only working if you append a
character to it -- you can use any character. This looks like a
programming error. The reason your example looped forever is that it
interpreted the " " as a zero, which means loop forever. Oops.
-Ben Karas
ps. I'm working off the vanilla 2.7 install.
On Tue, 5 Sep 2000, Sebastian Stark wrote:
> I discovered that jot(1) behaves very strange.
>
> $ jot -s " " 5
>
> should give "1 2 3 4 5" as I understand but it counts endlessly (and uses
> newlines instead of " ")
>