mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 03:12:48 +02:00
fix comment typos
* bootstrap: Fix comment typos. * src/pr.c: Likewise.
This commit is contained in:
committed by
Jim Meyering
parent
48430d6a4a
commit
2977df8e7d
@@ -247,11 +247,11 @@ sort_ver() { #sort -V is not generally available
|
||||
echo "$2 $1"
|
||||
break
|
||||
elif [ ! "$p1" = "$p2" ]; then
|
||||
if [ "$p1" -gt "$p2" ] 2>/dev/null; then #numeric comparision
|
||||
if [ "$p1" -gt "$p2" ] 2>/dev/null; then #numeric comparison
|
||||
echo "$2 $1"
|
||||
elif [ "$p2" -gt "$p1" ] 2>/dev/null; then #numeric comparision
|
||||
elif [ "$p2" -gt "$p1" ] 2>/dev/null; then #numeric comparison
|
||||
echo "$1 $2"
|
||||
else #numeric, then lexographic comparison
|
||||
else #numeric, then lexicographic comparison
|
||||
lp=$(printf "$p1\n$p2\n" | LANG=C sort -n | tail -n1)
|
||||
if [ "$lp" = "$p2" ]; then
|
||||
echo "$1 $2"
|
||||
|
||||
Reference in New Issue
Block a user