1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-18 17:53:23 -07:00
rc/sh/join2
Connor Olding d5f3f14d72 merge compatibility lines
RIP meaningful last-modified dates
2024-03-26 15:08:14 -07:00

10 lines
235 B
Bash

#!/usr/bin/env sh
# YES_ZSH YES_BASH YES_DASH YES_ASH
join2() { ### @- join every other line.
# TODO: argc, also better interface that allows n file inputs without stdin.
paste -d" " - -
}
[ -n "${preload+-}" ] || join2 "$@"