Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2019 08:05:50 -0800
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        freebsd-current@freebsd.org
Subject:   Re: OpenSSL breaks factor(6)
Message-ID:  <20191229160550.GA72177@troutmask.apl.washington.edu>
In-Reply-To: <20191229160247.GA72129@troutmask.apl.washington.edu>
References:  <20191227212530.GA61314@troutmask.apl.washington.edu> <20191229160247.GA72129@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 29, 2019 at 08:02:47AM -0800, Steve Kargl wrote:
> Here's a final attempt at fixing and documenting FreeBSD's factor(6).
> Do what you want with the patch.  With and without OpenSSL, one now
> gets
> 
> % factor +123 123 123zzzz 123zabc 123abc +123abc 0x123abc +0x123abc
> 123: 3 41
> 123: 3 41
> 123: 3 41
> 123: 3 41
> 1194684: 2 2 3 29 3433
> 1194684: 2 2 3 29 3433
> 1194684: 2 2 3 29 3433
> 1194684: 2 2 3 29 3433
> 
> * usr.bin/factor/factor.6:
>   . Update documentation to note that hexadecimal strings are accepted.
>   . Document that a hexadecimal number can have an optional 0x or 0X prefix.
>   . Document that a 0 value in interactive mode terminates factor(6).

Whoops. Leading zeros are ignored.

>   . Fix the maximum value for 'stop' in primes(6).
>   . While here, spell "white-space" as "whitespace" and "non-digit" as
>     "nondigit".

-- 
steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191229160550.GA72177>