git: lt(1): Use 'find -s' instead of 'find | sort'.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Mar 29 01:19:36 PDT 2020


commit 7aa870f7588f7bb1b86035154e34ea5f3985674b
Author: Sascha Wildner <saw at online.de>
Date:   Sun Mar 29 10:18:45 2020 +0200

    lt(1): Use 'find -s' instead of 'find | sort'.
    
    This diff of the old behavior vs. new shows the issue:
    
    --- /tmp/t1	2020-03-29 10:09:50.009490000 +0200
    +++ /tmp/t2	2020-03-29 10:10:09.909695000 +0200
    @@ -48,12 +48,12 @@
         |   |-- SimpleTextOut.h
         |   `-- UgaDraw.h
         |-- Uefi
    -    |-- Uefi.h
         |   |-- UefiBaseType.h
         |   |-- UefiGpt.h
         |   |-- UefiInternalFormRepresentation.h
         |   |-- UefiMultiPhase.h
         |   |-- UefiPxe.h
         |   `-- UefiSpec.h
    +    |-- Uefi.h
         `-- X64
             `-- ProcessorBind.h
    
    With 'find | sort', lt(1) would incorrectly show the contents of the
    'Uefi' directory below the 'Uefi.h' file.
    
    With 'find -s', the 'Uefi.h' file is correctly sorted below 'Uefi'
    and its contents.

Summary of changes:
 usr.bin/lt/lt.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7aa870f7588f7bb1b86035154e34ea5f3985674b


-- 
DragonFly BSD source repository



More information about the Commits mailing list