there is another base64 program that performs the same purpose as
base64 in coreutils:
http://www.fourmilab.ch/webtools/base64/
It accepts -e or --encode to mean the same thing that GNU base64
implies with no arguments. It also accepts -n and --noerrcheck to
mean the same thing as GNU base64's -i and --ignore-garbage.
A friend just installed it from FreeBSD ports, and says that that
base64 also works the way GNU base64 does if no arguments are
supplied, though the man page [0] isn't clear on that.
If GNU base64 just accepted (and ignored) -e and --encode arguments,
and treated -n and --noerrcheck as synonyms for -i, then scripts
written to invoke fourmilab's base64 could use GNU's instead.
Attached is a patch that should handle it. I didn't update the usage
output because it seems like a lot of noise, but i did get the info
docs. It's not clear to me if the man pages need touching up too, or
if they'll get re-genned from info somehow.
Thanks for maintaining coreutils in debian!
iQIVAwUBSMB3rMzS7ZTSFznpAQI3ZA//TkzMpDtu/SCLDy23yQT/89mCJ6+2Tqkn
EAs9I2WQ8o8lkhvNTcTpv/3+zw15f53BzfBj9VvOhoRtAgBbEptl3Vswi+tKTXJh
j3y5aKIY7BPquVBfCJn/8B0sWLL7qKgdFmjMHUBjX5AhRJvXTv3Inbw7mB18bFg7
SjZR3Z3/9Wdqa7ARJzZyEbyg+rGSXGBHhz8+G+4PziyB0oCPqiXZXFu73z4xo53p
EDk2Zt7HwiHUDiH913bj6KuWrtC4oFhl8fwRUTsGfiEOe/nyBo02PSehEJNX//nL
IfxiAqgCyu2e6PMsbTmV60QqfiNUyKHE90k+H1BBLEbhJ5gKx5HTD+kWzqGA4XLw
FPtEhyz5hhyFu8abc2DLmugDjRE7pxtnCLOVZ7LAbIRnKeefsKs6RAcx6tCkDSrw
rBy3F0IbqnjzWVX3OJ6lRDO5oXfg/Zqi63+/H4pJP9bkK9YGvFJxZvLY4snw1p0x
VJ0BgvM/5CmoWsYEYESL6JC9aCAlxJ+6QvtkDdftQP7RMeiA1RTastEg9bfy+GXZ
eA3KkCMqVFgbXAYFROz+/z4IawLkz1M4JZolqxsuw7OBv5pHjmexuUkwwRog+4Xf
5niEkspvUl9my8tcJubcNZ9gFziLszc6BMxdygLo/7BUIZRm1gusUrQhwUX8qeuy
UFBj6SKALqU=
=XV4P
-----END PGP SIGNATURE-----