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

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


commit fc4a87605647bc7e5c0d79824edbaa1a51232b8d
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/fc4a87605647bc7e5c0d79824edbaa1a51232b8d


-- 
DragonFly BSD source repository


More information about the Commits mailing list