| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
* feature/d2u-u2d-consist:
Make d2u(1df)/u2d(1df) like their stream analogues
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Remove the idempotency guarantee, and simplify the ed(1) scripts. See
commits 2905980 and cd8e9cc:
>commit 29059804f7708413843687c1764bc845d374a82d
>Author: Tom Ryder <tom@sanctum.geek.nz>
>Date: Fri Nov 3 13:58:23 2017
>
> Remove idempotency assert for sd2u(1df)/su2d(1df)
>
> Commit cd8e9cc applies a cleaner implementation of these tools but
> loses the idempotency:
>
> * Repeated su2d applications will result in double \r, so \r\r\n
> * Repeated s2ru applications will result in an extra newline at the
> end of the file, because the whole file will be interpreted as
> one line
>
> However, I am OK with this, as I think of the operation as simpler
> and more predictable, and I wouldn't apply it as a means to "force"
> a file of unknown or various line-ending types to one type.
>
>commit cd8e9cc27f7dd9d360b64f4a34b8c2d048f42e45
>Author: Tom Ryder <tom@sanctum.geek.nz>
>Date: Fri Nov 3 13:46:30 2017
>
> Apply simpler method for sd2u(1df) and su2d(1df)
>
> This method is shorter, easier to read, and more idiomatic.
|
|/
|
|
| |
This method is shorter, easier to read, and more idiomatic.
|
|
|
|
|
| |
If we don't do this, we run the risk of expanding an arbitrary macro
VERSION on any given system.
|
|
|
|
|
|
|
|
|
|
| |
This is mostly just for fun, but could be handy later on when I'm
playing with distributed or automated deployments of tagged and verified
releases.
Like a few of the other shell scripts, this is built by abusing my
mi5(1df) wrapper to get static details baked into the shell script that
are only known at runtime.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modern OpenSSL builds, at least on Debian Stretch, don't even include
this as an option anymore, because SSLv2 has been so broken for so long.
There's not really much point trying to keep it.
$ openssl version
OpenSSL 1.1.0f 25 May 2017
$ openssl -no_ssl2
Invalid command '-no_ssl2'; type "help" for a list.
|
|
|
|
| |
This is more idiomatic, and explicitly initialises the result variable.
|
| |
|
| |
|
|
|
|
| |
Because I forgot
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Forgot to remove the square brackets
|
|
|
|
| |
Debian's ancient mawk doesn't support them
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Specific values for these tasks get chosen way more often than other in
mawk, and it seems to be caused by the random seed being above a certain
value. Not sure if it's a bug or how it interacts with the POSIX
standard, but this seems to fix it.
|
| |
|
|
|
|
| |
Mostly inspired by suggestions from gawk --lint
|
| |
|
|
|
|
|
|
| |
gawk's --lint option complains:
> awk: .dotfiles/bin/trs.awk:7: warning: null string for `FS' is a gawk extension
|
|
|
|
|
| |
I forgot that Debian's awk(1) is still a mawk that doesn't implement
e.g. [:alpha:]
|
| |
|
| |
|
|
|
|
|
| |
Removes the need for the temporary file. Also refactor pks(6df) to
accommodate it.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Seems a bit nicer, passing the variable in as data rather than code
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
A clunkier and probably-slower but more accurate parser--won't stumble
over quoted instances of the mi5(1df) delimiter within inline macro
expansions. This removes one of the CAVEATS described in the manual
page.
Also allow specifying the quote and unquote strings and also the dnl
string in m4, mostly for completeness' sake; the manual page warns
against this as I think it's probably missing the point of mi5(1df) if
you're getting to that point.
|
| |
|
| |
|