freebsd-dev/usr.bin
Conrad Meyer 3452510890 join(1): Fix field ordering for -v output
Per POSIX, join(1) (in modes other than -o) is a concatenation of selected
character fields.  The joined field is first, followed by fields in the
order they occurred in the input files.

Our join(1) utility previously handled this correctly for lines with a match
in the other file.  But it failed to order output fields correctly for
unmatched lines, printed in -a and -v modes.

A simple test case is:

$ touch a
$ echo "2 1" > b
$ join -v2 -2 2 a b
1 2

PR:		217711
Reported by:	alt.j2-4o4s2yon at yopmail.com
Sponsored by:	Dell EMC Isilon
2017-06-22 02:19:39 +00:00
..
addr2line elftoolchain: Use ${SRCTOP} for the top of the FreeBSD tree 2016-04-21 12:58:29 +00:00
alias
apply Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ar ar: enable reproducible output by default when invoked as 'ar -s' 2016-06-16 21:22:26 +00:00
asa
at Use nitems() from sys/param.h 2016-07-30 06:32:18 +00:00
atm Use SRCTOP instead of .CURDIR relative paths with ".." 2017-02-11 20:19:04 +00:00
awk Import the awk(1) manpage from OpenBSD 2017-03-09 03:27:53 +00:00
banner banner(6): Squash a harmless coverity warning 2017-04-13 23:22:18 +00:00
basename Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
bc bc/dc/patch: make some use of reallocarray(3). 2017-03-05 16:10:35 +00:00
biff Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
bluetooth Use SRCTOP to define .include with usr.bin/Makefile.inc 2017-02-11 20:27:53 +00:00
bmake Merge bmake-20170510 2017-05-10 22:45:05 +00:00
brandelf
bsdcat MFV r315633, 315635: 2017-03-20 13:02:27 +00:00
bsdiff Revert debugging that was accidently committed in r316314 2017-03-31 03:11:25 +00:00
bzip2 Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
bzip2recover Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
c89
c99
caesar
calendar Add myself (ultima) as a new port committer. 2017-06-08 01:42:32 +00:00
cap_mkdb Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
catman Make catman(1) use mandoc(1) by default 2017-05-21 22:28:28 +00:00
chat Delete dead code in chat(8) 2017-01-04 16:24:40 +00:00
chkey Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
chpass Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
cksum Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
clang Merge ^/head r312720 through r312893. 2017-01-27 20:01:46 +00:00
cmp Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
col Rename tests from <foo> to <foo>_test to match the FreeBSD test suite 2017-03-23 03:28:24 +00:00
colldef Note that mklocale(1) and colldef(1) are no longer used 2016-04-17 23:02:49 +00:00
colrm Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
column Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
comm Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
compile_et Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
compress compress: Allow uncompress -c with multiple pathnames, as required by POSIX. 2017-05-21 14:35:16 +00:00
cpio MFV r315633, 315635: 2017-03-20 13:02:27 +00:00
cpuset Fix markup for -j in cpuset(1) synopsis 2016-07-29 21:18:20 +00:00
csplit csplit(1): Fix extraneous output in edge case 2017-05-08 15:51:29 +00:00
ctags Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ctlstat Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
cut Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cxxfilt elftoolchain: Use ${SRCTOP} for the top of the FreeBSD tree 2016-04-21 12:58:29 +00:00
dc bc/dc/patch: make some use of reallocarray(3). 2017-03-05 16:10:35 +00:00
diff Add some testcases for diff --side-by-side support 2017-06-12 05:11:43 +00:00
diff3 Update the diff3 manpage to reflect the fact the version in freebsd does 2017-05-25 18:46:13 +00:00
dirname Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dpv Bump copyright 2016-01-27 00:03:43 +00:00
drill Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
dtc dtc: Update to upstream 917526 2017-06-20 18:29:01 +00:00
du Add some initial basic tests for du(1) 2017-06-12 07:43:58 +00:00
ee Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
elf2aout
elfcopy Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
elfdump DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
enigma Remove bdes(1) 2017-02-06 08:27:19 +00:00
env Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
expand Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
factor Delete obsolete paragraph; primes(6) is now able to list primes for the 2017-06-04 02:45:18 +00:00
false Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
fetch Add phttpget(8) .Xr to fetch(1). 2016-03-29 11:56:00 +00:00
file Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
file2c Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
find Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
finger The variable nargv is allocated but never freed, so free it when the it 2017-06-13 15:50:16 +00:00
fmt Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
fold DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
fortune strcpy => strlcpy, strcat => strlcat 2017-04-04 19:46:23 +00:00
from Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
fstat fstat: catch up with r318997 and use 64 bits to store fsid 2017-06-10 20:38:52 +00:00
fsync
ftp Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
gcore Add support for capturing 'struct ptrace_lwpinfo' for signals 2017-03-30 18:21:36 +00:00
gencat Rename getline with get_line to avoid collision with getline(3) 2016-05-10 11:12:31 +00:00
getaddrinfo DIRDEPS_BUILD: Connect new directories. 2017-05-09 01:48:14 +00:00
getconf Revert local changes to find_progenv accidentally committed in r318436 2017-05-18 01:46:30 +00:00
getent Document getent(1)'s ability to enumerate netgroup members. 2016-06-04 21:34:06 +00:00
getopt DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
gprof Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
grdc
grep Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
gzip Reflect actual NetBSD revision we already have. 2017-02-06 07:02:17 +00:00
head Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
hesinfo
hexdump hexdump: actually enter capability mode on last file 2017-06-13 01:05:55 +00:00
host Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
iconv DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
id Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ident DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
indent indent(1): Support binary integer literals. 2017-05-18 17:15:58 +00:00
ipcrm Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
ipcs
iscsictl Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
join join(1): Fix field ordering for -v output 2017-06-22 02:19:39 +00:00
jot Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kdump Decode arguments to rtprio_thread() (same as rtprio()). 2017-06-10 01:32:18 +00:00
keylogin
keylogout
killall
ktrace Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ktrdump DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
lam DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
last Fix a memory leak with last 2017-06-02 20:25:25 +00:00
lastcomm Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
ldd Increase size of argv[] array to avoid running off the end. 2016-05-16 16:01:46 +00:00
leave Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
less MFV r317581: less v491. 2017-05-05 14:33:39 +00:00
lessecho Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
lesskey Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
lex Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
limits strcpy => strlcpy, strcat => strlcat 2017-04-04 19:46:23 +00:00
locale Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
localedef Mark errf _Noreturn, and mark errf and warn __printflike 2017-05-14 18:47:09 +00:00
locate Revert prior commit to restore the files mangled by my "fixing" merge 2017-03-01 02:10:40 +00:00
lock Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
lockf
logger Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
login Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
logins
logname Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
look Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
lorder Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
lsvfs
lzmainfo Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
m4 Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
mail Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
man - Remove separate handling of /bin and /usr/bin in manpath. They are no 2017-03-12 10:56:19 +00:00
mandoc Import mandoc snapshot 2017-06-08 2017-06-08 19:40:00 +00:00
mesg Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
minigzip Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
ministat DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
mkcsmapper Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
mkcsmapper_static Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
mkdep Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mkesdb Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
mkesdb_static Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
mkfifo Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mkimg Update the usr.bin/mkimg golden test output files after ^/head@r319125 2017-05-31 08:01:12 +00:00
mklocale Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
mkstr Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mktemp Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mkuzip o Move logic that determines size of the input image into its own 2017-06-17 02:58:31 +00:00
morse
msgs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mt Add LTO-8 density codes. 2017-05-11 13:46:30 +00:00
nc Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
ncal ncal: fix a reference to an out-of-scope stack buffer 2016-11-05 14:08:14 +00:00
netstat Listening sockets improvements. 2017-06-08 21:30:34 +00:00
newgrp Remove useless calls to basename(). 2016-05-01 08:22:11 +00:00
newkey Squelch clang 3.9.0 warnings about BASE (which is 32768) being converted 2016-08-30 19:02:15 +00:00
nfsstat Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nice Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nl Remove another occurence of _WITH_GETLINE 2016-07-31 19:02:19 +00:00
nm elftoolchain: Use ${SRCTOP} for the top of the FreeBSD tree 2016-04-21 12:58:29 +00:00
nohup Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
numactl Don't repeat the the word 'the' 2016-05-17 12:52:31 +00:00
number
opieinfo Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
opiekey Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
opiepasswd Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
pagesize Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
pamtest Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
passwd Convert absolute links to relative links. 2017-03-07 05:10:38 +00:00
paste Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
patch patch: if reading fails, do not go into infinite loop asking for a filename. 2017-06-08 03:15:08 +00:00
pathchk Add -P to pathchk usage 2016-07-09 04:56:28 +00:00
perror Remove spaces at end of line 2017-02-11 23:45:50 +00:00
pom DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
pr Remove a duplicate fclose() that snuck into r316501 2017-04-05 16:13:36 +00:00
primes Using results from 2017-06-04 02:36:37 +00:00
printenv Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
printf printf: Output formatted data directly, instead of via asprintf. 2017-04-29 21:48:11 +00:00
proccontrol Use MAN=<empty> rather than MK_MAN=no to not install a manpage. 2017-05-02 21:09:07 +00:00
procstat procstat(1): Add TCP socket send/recv buffer size 2017-05-26 22:17:44 +00:00
protect
quota Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
random Fix a (false positive?) Argument cannot be negative coverity defect. 2016-06-08 02:14:05 +00:00
rctl Use proper capitalization with .Dd. 2017-06-01 15:03:43 +00:00
readelf Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
renice Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
resizewin Language fixes. 2017-05-18 19:42:19 +00:00
rev Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
revoke Remove empty space at EOL and escept Ed 2017-02-11 23:39:56 +00:00
rlogin Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rpcgen rpcgen(1): Check getrlimit() return for generated code. 2017-01-12 14:44:41 +00:00
rpcinfo strcpy => strlcpy, strcat => strlcat 2017-04-04 19:46:23 +00:00
rs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rsh Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
rup Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ruptime Fix formatting. ruptime output on FreeBSD cluster machines annoyed me 2017-03-04 04:06:33 +00:00
rusers Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rwall Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rwho Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
script Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
sdiff Remove a useless loop over the long options before passing through some 2017-04-08 08:42:25 +00:00
sed Fix the last example to really replace all occurrences of the search string 2017-04-24 16:52:26 +00:00
send-pr
seq Update history. Patch supplied by Sevan Janiyan <venture37@geeklan.co.uk>. 2016-09-16 14:23:16 +00:00
setchannel
shar Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
showmount Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
size elftoolchain: Use ${SRCTOP} for the top of the FreeBSD tree 2016-04-21 12:58:29 +00:00
smbutil Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
sockstat Shut up gcc. 2017-03-21 08:57:20 +00:00
soelim Rename tests from <foo> to <foo>_test to match the FreeBSD test suite 2017-03-23 03:28:24 +00:00
sort sort(1): Remove unneeded initializations. 2017-02-17 19:53:20 +00:00
split Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ssh-copy-id
stat Add initial tests for stat(1) 2017-06-12 00:21:55 +00:00
stdbuf
strings elftoolchain: Use ${SRCTOP} for the top of the FreeBSD tree 2016-04-21 12:58:29 +00:00
su Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
svn Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
systat Fix systat(1) regression. It was broken by r317061. 2017-04-20 22:30:39 +00:00
tabs
tail Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
talk Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tar MFV r315875: 2017-03-24 00:02:12 +00:00
tcopy Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tee Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
telnet Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
tftp Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
time Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
timeout Rename some tests to end in _test. 2017-03-09 04:20:00 +00:00
tip Add basic example to the cu(1) man page. Srsly, folks, you don't 2017-04-22 09:38:43 +00:00
top top: Missing man page update for r319866 2017-06-12 19:54:42 +00:00
touch Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tput Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tr Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
true Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
truncate Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
truss Add abstime kqueue(2) timers and expand struct kevent members. 2017-06-17 00:57:26 +00:00
tset The memory assigned to the local variable 'copy' needs to be freed. 2017-06-06 21:40:35 +00:00
tsort Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tty Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ul Do not truncate lines longer than 512 chars. 2016-07-11 08:05:46 +00:00
uname - Add a simple example to uname(1) manual page to show how the hardware 2017-05-31 03:44:31 +00:00
unexpand Fix some cases where an index was used before its limits check. 2017-04-29 06:41:51 +00:00
unifdef
uniq uniq: allow -c to be used with -d or -u 2017-05-15 20:18:14 +00:00
units Escape No to avoid confusion with the No macro 2017-02-11 23:38:28 +00:00
unvis Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
unzip Add missing section after .Xr reference 2017-02-11 23:37:48 +00:00
usbhidaction
usbhidctl
users Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
uudecode Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
uuencode Use nitems() from sys/param.h. 2017-03-10 06:23:15 +00:00
vacation Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
vgrind Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
vi Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
vis Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
vmstat Let vmstat -o recognize OBJT_MGTDEVICE objects. 2017-05-23 07:20:29 +00:00
vtfontcvt vtfontcvt: remove superfluous newlines in errx messages 2016-09-14 18:22:12 +00:00
w Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
wall Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
wc Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
what Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
whereis usr.bin: minor spelling fixes on comments. 2016-05-01 16:13:05 +00:00
which which(1): sort #includes 2017-04-19 19:55:38 +00:00
who Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
whois Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
write Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
xargs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
xinstall Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
xlint Fix improper use of "its". 2016-11-08 23:59:41 +00:00
xo Import libxo-0.7.2; add xo_options.7. 2017-05-16 18:46:56 +00:00
xohtml Merge libxo-0.8.2: 2017-06-16 06:29:21 +00:00
xolint Merge libxo-0.8.2: 2017-06-16 06:29:21 +00:00
xopo Merge libxo-0.8.2: 2017-06-16 06:29:21 +00:00
xstr Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
xz Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
xzdec Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
yacc Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
yes style(9) fixes. 2017-06-13 16:19:32 +00:00
ypcat
ypmatch
ypwhich Adopt SRCTOP in usr.bin 2017-03-12 18:58:44 +00:00
zstd DIRDEPS_BUILD: Connect new directories. 2017-05-09 01:48:14 +00:00
Makefile Remove leftovers from groff removal 2017-06-07 23:41:33 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.powerpc
Makefile.sparc64