diff options
author | tjr <tjr@FreeBSD.org> | 2003-06-01 22:37:38 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-06-01 22:37:38 +0000 |
commit | f9c2081f4f0b69309cbe01ad7f4943abfbcc25cd (patch) | |
tree | 1721b7fc232b13a102edef0740585c1a3e3de312 /usr.bin/lorder | |
parent | 31eeb1fbcf895ab8fd59a5d42a9e7048b7115ab7 (diff) | |
download | FreeBSD-src-f9c2081f4f0b69309cbe01ad7f4943abfbcc25cd.zip FreeBSD-src-f9c2081f4f0b69309cbe01ad7f4943abfbcc25cd.tar.gz |
Give the -o option before any filename operands when invoking the sort
utility. 1003.1-2001 does not allow sort to accept the -o option after
the operands (Base Definitions, 12.2 Utility Syntax Guidelines,
Guideline 9).
Diffstat (limited to 'usr.bin/lorder')
-rw-r--r-- | usr.bin/lorder/lorder.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/lorder/lorder.sh b/usr.bin/lorder/lorder.sh index 5cd8e3c..c908f76 100644 --- a/usr.bin/lorder/lorder.sh +++ b/usr.bin/lorder/lorder.sh @@ -79,7 +79,7 @@ ${NM} -go $* | sed " # sort symbols and references on the first field (the symbol) # join on that field, and print out the file names. -sort -k 2 $R -o $R -sort -k 2 $S -o $S +sort -k 2 -o $R $R +sort -k 2 -o $S $S join -j 2 -o 1.1 2.1 $R $S rm -f $R $S |