News for hackers. Stuff that matters.
Re:Ox is a fast text editor, written in Rust, that runs in y... by oefrha on Tuesday November 03, 2020 @03:50AM (#24977736)
Whether there's a wrapping feature depends on the implementation. coreutils base64, yes. Other implementations, maybe not. macOS's /usr/bin/base64 for instance doesn't have the concept of wrapping. FreeBSD base64, judging from the manpage, doesn't do that either. https://www.freebsd.org/cgi/man.cgi?query=base64

Edit: Oops, posted some misinformation. The mistaken part, reproduced below:

> First, wrapping by default only occurs when writing to a tty. When stdout is redirected to a file, wrapping base64 output usually doesn't make sense, so wrapping doesn't happen.

Correction: coreutils base64 wraps regardless of whether stdout is a tty.

Re:Ox is a fast text editor, written in Rust, that runs in y... by tzs on Tuesday November 03, 2020 @06:09AM (#24978510)
> macOS's /usr/bin/base64 for instance doesn't have the concept of wrapping

Yes it does. "-b N" or "--break=N" inserts a line break every N characters.

Re:Ox is a fast text editor, written in Rust, that runs in y... by oefrha on Tuesday November 03, 2020 @06:26AM (#24978612)
Yeah. I know -w doesn't work, and missed -b when glancing at the manpage. (I use coreutils day to day.)