From ebe5d44d5a9d9dfa1323f42b460397074654a1bf Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Sun, 1 Jun 2003 22:37:38 +0000 Subject: [PATCH] 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). --- usr.bin/lorder/lorder.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/lorder/lorder.sh b/usr.bin/lorder/lorder.sh index 5cd8e3c88afc..c908f761a595 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